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 Quote Link to comment https://forums.phpfreaks.com/topic/280052-php-session-time/ Share on other sites More sharing options...
Solution requinix Posted July 11, 2013 Solution 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). Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/280052-php-session-time/#findComment-1440513 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.