frost Posted January 24, 2008 Share Posted January 24, 2008 Hello, After destroying a session using: <?php // Initialize the session. // If you are using session_name("something"), don't forget it now! session_start(); // Unset all of the session variables. $_SESSION = array(); // If it's desired to kill the session, also delete the session cookie. // Note: This will destroy the session, and not just the session data! if (isset($_COOKIE[session_name()])) { setcookie(session_name(), '', time()-42000, '/'); } session_unset(); // Finally, destroy the session. session_destroy(); header("Location: ./?"); ?> I can simply hit the back button and all of the information is still visible. Is there a way around this? Edit: A refresh will clear all of the values but I was hoping to get it done without the refresh. Quote Link to comment https://forums.phpfreaks.com/topic/87473-solved-destroyed-session-still-visible/ Share on other sites More sharing options...
cooldude832 Posted January 24, 2008 Share Posted January 24, 2008 just wrote this answer http://www.phpfreaks.com/forums/index.php/topic,178637.0.html Quote Link to comment https://forums.phpfreaks.com/topic/87473-solved-destroyed-session-still-visible/#findComment-447390 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.