Randy Johnson [[EMAIL PROTECTED]] wrote:
> Hello,
> 
> I was going to use sessions to save a logged in variable so if the user
> logged in with a username and password I checked for the session variable
> and if it existed then I could continue.
> 
> Is there a way for the loggedin session variable to automatically be
> destroyed after 5 minutes for example?  If not what would be another way I
> could implement the above.

Look at your php.ini configuration - specifically

  session.gc_probability
  session.gc_maxlifetime

they will help you manage sessions and give a lifetime to
each session.

You can also use a scheduled(cron on *nix) job to remove sessions
older than ??? minutes.

HTH.

-- 
Hardy Merrill
Mission Critical Linux, Inc.
http://www.missioncriticallinux.com

> 
> 
> thanks,
> 
> Randy
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to