Session Time to Live

From: Date: Wed, 14 May 2003 11:12:10 +0000
Subject: Session Time to Live
Groups: php.general 
Request: Send a blank email to php-general+get-147560@lists.php.net to get a copy of this message
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

« previous php.general (#147560) next »