Something is deleting your cookies or you're logging in somewhere else. Those would be the only two reasons for you to be getting logged out automatically.
Thank you for your help Chris will check out what you have said ,I don't recall any browser extensions.
Private browsing or incognito modes will cause this as well.
Thank you for the reply CyPHeR369, But I never use private browsing:-)