Author: (203.106.219.---)
Date: 02-29-04 16:07
Hm..to give a more detail situation..
as for the system i'm developing, after the session_start() on every page, i'll check the session registered...
<?php
session_start();
if(!session_is_registered('user_id')) {
header ("location:/pageexpired.php");
}
else {
//the rest of the code
}
?>
this actually to ensure that if the user has signed out or logged off, perhaps they can click on the back button on the menu bar, but as they click on the links in the webpage, they will automatically link to the pageexpired.php...i make like this bcoz i'm not sure how to enable the back button after a user has logoff.
and if i use the session_unregister(), it seems that the 'user-id' is still registered in the session. This is told by the accessability that the user still has even after clicking the 'logoff' button. Do you have any idea what setting(s) went wrong?..
Btw, i'll try to minimize the timeout value for the session. Will c n inform the result from it.
Thanks in advance.
|
|