I am trying to destroy a session variable in php from logout.php using the following commands
session_unregister("valid_user");
session_unset();
session_destroy();
I have set the session on login.php with the following
session_start();
$valid_user = $email;
session_register("valid_user");
$temp_session = session_id();
When I logout and then login again, the same session id is applied. Could anyone give me a pointer as to why a new session id is not given.
session_unregister("valid_user");
session_unset();
session_destroy();
I have set the session on login.php with the following
session_start();
$valid_user = $email;
session_register("valid_user");
$temp_session = session_id();
When I logout and then login again, the same session id is applied. Could anyone give me a pointer as to why a new session id is not given.