I only want users to logout if they visit the "logout" page. For this I set this in my settings file:
ini_set('session.gc_maxlifetime', 0);
ini_set('session.cookie_lifetime', 0);
But users are still disconnecting from site from time to time and I don't know why. Is there a better way to tell site to not log out users? What is causing users to be disconnected?
EDIT: I have users that launch site from browser and that launch site through mobile application by rest service(services module). Both types of users are disconnects. I not sure but sometimes when I save some views user is logging out and I recieve message that you have no access.
UPDATE: this part of code ini_set('session.gc_maxlifetime', 0);
logs out user. I thought that if it set to 0 it means that user has never been loging out until he not push on logout.