Hazukiy Posted July 11, 2013 Share Posted July 11, 2013 Hi, I just have a quick question to ask which I can't find an answer to. Is there a way to set a session time for the "start_session" because everytime I log in, it doesn't keep my session for that long when I then access the page again later. Help is appreciated Link to comment https://forums.phpfreaks.com/topic/280052-php-session-time/ Share on other sites More sharing options...
requinix Posted July 11, 2013 Share Posted July 11, 2013 There are a variety of session-related INI settings. Take a look at your session.cookie_lifetime (lifetime of the session cookie, 0=current session only) and session.gc_maxlifetime (how long before "old" session data can be randomly destroyed). Link to comment https://forums.phpfreaks.com/topic/280052-php-session-time/#findComment-1440256 Share on other sites More sharing options...
Hazukiy Posted July 12, 2013 Author Share Posted July 12, 2013 There are a variety of session-related INI settings. Take a look at your session.cookie_lifetime (lifetime of the session cookie, 0=current session only) and session.gc_maxlifetime (how long before "old" session data can be randomly destroyed). Thanks very much Link to comment https://forums.phpfreaks.com/topic/280052-php-session-time/#findComment-1440513 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.