Editing SESSION lifetime

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Editing SESSION lifetime

Post by Eran »

I did try your suggested method but to no avail.
How did you test that it didn't work?
Possibly PHP is running in safe mode on your servers, which means you can't change those parameters at run time.
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Editing SESSION lifetime

Post by aceconcepts »

Ok, the maxlifetime is being edited properly now - using ini_set. However, the session does not expire after the new lifetime!

Anymore ideas?
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: Editing SESSION lifetime

Post by Eran »

Now that ini_set is working, try my method - which affects session.cookie_lifetime
Post Reply