hi, i searched the forums for help on session expiration and have tried various things in my code but nothing seems to work. i want the sessions to last 1 minute as a trial.
i am still confused about using:
ini_set("session.cache_expire","1");
OR
session_cache_expire(1);
OR
ini_set("session.cache_expire","60");
here's how i was doing it (possibly wrong!)
at the top of every file on my site i include master.inc.php then do a check_session(); call which determines if the session is authorized or not. if not, the user goes to the login screen.
so in my master.inc.php file i tried things like:
session_cache_expire(1);
// start session
session_start();
// includes
include("includes/config.inc.php");
include("includes/function.inc.php");
include("includes/databasefunctions.inc.php");
include("includes/session.inc.php");
after i logged in, waited over a minute, i could still browse the site normally. it appeared nothing happened to my session.
*i am also wondering about how to give a user a 'session has expired' message.
Chris