A
Anonymous
Guest
<?php
/* set the cache limiter to 'private' */
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();
/* start the session */
session_start();
echo "The cache limiter is now set to $cache_limiter<br />";
echo "The cached session pages expire after $cache_expire minutes";
?>
i got the code above, how to use it. I put it in a main file, after a certain time, i set to one minute, after a minute, i can't auto logout, should i put it in all the files that i have to make it work??? help me please? thanks
/* set the cache limiter to 'private' */
session_cache_limiter('private');
$cache_limiter = session_cache_limiter();
/* set the cache expire to 30 minutes */
session_cache_expire(30);
$cache_expire = session_cache_expire();
/* start the session */
session_start();
echo "The cache limiter is now set to $cache_limiter<br />";
echo "The cached session pages expire after $cache_expire minutes";
?>
i got the code above, how to use it. I put it in a main file, after a certain time, i set to one minute, after a minute, i can't auto logout, should i put it in all the files that i have to make it work??? help me please? thanks