why there's an instance.
my page been session timeout.
code something like this:
when i refresh the page of main.php
sometime i get no session.
something like all my session variables been gone.
but the sessionid still the same.
my script didnt unset or use session_destroy ()
therefore it must be there.
my page been session timeout.
code something like this:
Code:
//login page session_start(); $_SESSION['var1'] = "username"; //will be redirected to main.php when logged in header('location:main.php');
Code:
//main.php session_start(); echo session_id(); foreach($_SESSION as $key=>$value) { echo $key." = ".$value."<br>"; }
sometime i get no session.
something like all my session variables been gone.
but the sessionid still the same.
my script didnt unset or use session_destroy ()
therefore it must be there.
Comment