Re: Sessions
| From: | Hardy Merrill | Date: | Mon, 15 Jan 2001 13:01:17 +0000 |
| Subject: | Re: Sessions | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-34614@lists.php.net to get a copy of this message | ||
Randy Johnson [programmer@jennybug.com] 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net