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. Quote Link to comment 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! Quote Link to comment 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 Quote Link to comment 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... Quote Link to comment 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 Quote Link to comment 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.