usban
11-05-2002, 08:14 PM
I'm having problems qith my frames and my sessions.
I use sessions to make my site private if users are not registered, but when i abandon the private pages and return to the initial one if i use the button of the browser to go to the previous page i see the page. I use this code in the login page
<?
session_save_path( "..\session");
session_start();
session_destroy();
?>
and this one in all the private ones
session_save_path( "..\session");
session_start();
if(!$id){
header("location: login.php");
die();
}
I use sessions to make my site private if users are not registered, but when i abandon the private pages and return to the initial one if i use the button of the browser to go to the previous page i see the page. I use this code in the login page
<?
session_save_path( "..\session");
session_start();
session_destroy();
?>
and this one in all the private ones
session_save_path( "..\session");
session_start();
if(!$id){
header("location: login.php");
die();
}