It depends on your logic of logging out a user.
Mostly coders make create a session variable and check its value on all 'resitricted' pages and if session value is wrong means it is dead etc then they use header to bring user to the login form..
well if you are using this method too then it is very easy, please your code in this IF statement which redirects a user on session expiry.
but you can face a problem in this method that this script will also be executed for those people who will come directly to your restricted page.. so even their session was never created but this script will be called..
the other option is to create a timestamp when session is created and keep checking the current time, if your session expiry time is 24 mins in php.ini file when it collects garbage and destroys session.. make your script to execute your desired script after 24 mins.
so when session will destroy your script will b
-- This message may have been cut off and the rest will only be shown to members. To become a member, click here --