tet3828 Posted November 11, 2006 Share Posted November 11, 2006 How do I set the session lifetime using "session.cookie.lifetime" I don't understand where in the script I should place this. I have a 700 pg php mysql book and it fails to mention it. help if you can. thanks. Link to comment https://forums.phpfreaks.com/topic/26904-session-lifetime/ Share on other sites More sharing options...
heckenschutze Posted November 11, 2006 Share Posted November 11, 2006 Its in the php configuration file, So you can edit it directly from php.ini OR at runtime using ini_set()Example:[code]<?phpini_set("session.cookie.lifetime", 360000);?>[/code]hth! Link to comment https://forums.phpfreaks.com/topic/26904-session-lifetime/#findComment-123043 Share on other sites More sharing options...
marknt Posted November 11, 2006 Share Posted November 11, 2006 [quote author=heckenschutze link=topic=114610.msg466385#msg466385 date=1163226540]Its in the php configuration file, So you can edit it directly from php.ini OR at runtime using ini_set()Example:[code]ini_set("session.cookie.lifetime", 360000);?>[/code]hth![/quote]Hello heckenschutze. How can i set the session lifetime via ini_set? I don't want to edit my php.ini settings Link to comment https://forums.phpfreaks.com/topic/26904-session-lifetime/#findComment-123051 Share on other sites More sharing options...
heckenschutze Posted November 11, 2006 Share Posted November 11, 2006 ^^ its right there in the post... The code... Link to comment https://forums.phpfreaks.com/topic/26904-session-lifetime/#findComment-123053 Share on other sites More sharing options...
marknt Posted November 11, 2006 Share Posted November 11, 2006 :o Im so sorry I didn't see it crap hehe Link to comment https://forums.phpfreaks.com/topic/26904-session-lifetime/#findComment-123063 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.