By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,216 Members | 1,023 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,216 IT Pros & Developers. It's quick & easy.

session expire help

P: 5
i want my script to automatically expire session in a given period of time e.g 5mins (as a test). my problem is when ive set session_cache_expire(5); in my script, run it and wait for about 6-10mins then click a link that has the particular session it still dont expire. i have also tried ini_set(session.cache_expire, '5'); but still got no expired session. in php.ini session.cache_expire is set to 30. i have no access to php.ini. any idea guys on how to do this?
Mar 2 '07 #1
Share this Question
Share on Google+
1 Reply

P: 268
$cache_limiter = session_cache_limiter();

/* set the cache expire to 30 minutes */
session_cache_expire (30);
$cache_expire = session_cache_expire();

/* start the session */

// Unset all of the session variables.
// Finally, destroy the session.
Mar 2 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.