Re: Session Time to Live
| From: | Bix | Date: | Wed, 14 May 2003 11:49:08 +0000 |
| Subject: | Re: Session Time to Live | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-147567@lists.php.net to get a copy of this message | ||
Solved it...
I've added a "Expires" variable in the form of a datestamp. How easy was
that!!!
Bit daft me ;)
"Bix" <php@bix.cc> wrote in message
news:20030514111217.64647.qmail@pb1.pair.com...
> Hi all,
>
> Is there any way of setting a time to live on sessions stored in php? I
have
> tried session_cache_expire(10); but the SIDs are still valid and return
> session variables after that time. I am trying to avoid people 'hacking'
my
> user's sessions.
>
> A long winded way i know would be to have a mysql table with sessions and
> datestamps with a crontab to clear old sessions from validity, but this
> means more server load and more time.
>
> Any help is appreciated, thanks.
>
> Bix
>
>