How to increase or decrease the lifetime of a session?

This forum is for discussing the future of the PHP Developer's Network, as well as for us to get your opinion on things.

This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
mukunthan
Forum Newbie
Posts: 12
Joined: Sat Sep 13, 2008 12:52 am

How to increase or decrease the lifetime of a session?

Post by mukunthan »

Hi ,
How to increase or decrease the lifetime of a session?
My requirement is session should timeout and all the session variables should be unset automatically after the prescribed time limit.
I used this code but the session did not timeout.Why?
ini_set("session.gc_maxlifetime", "60"); // should timeout after 1minute
mukunthan
Forum Newbie
Posts: 12
Joined: Sat Sep 13, 2008 12:52 am

Re: How to increase or decrease the lifetime of a session?

Post by mukunthan »

Oops ! Sorry its like this
ini_set("session.gc_maxlifetime", 60);
Post Reply