laron Posted May 19, 2007 Share Posted May 19, 2007 i have a logout link on my (portal page, once your logged in) to a php script with the following code: (this should destroy the sessions and log them out) <?php session_start(); session_destroy(); header("Location: http://site/login/index.php"); ?> and when after it directs you back to the login page, all you have to do is hit the back button on your browser and it will bring you back to the portal you were just at(logged in). is something going wrong with the sessions being destroyed? or is this what is sapposed to happen? Quote Link to comment https://forums.phpfreaks.com/topic/52127-solved-logging-out/ Share on other sites More sharing options...
neel_basu Posted May 19, 2007 Share Posted May 19, 2007 I think the browser will show the portal just from its catch memory. Quote Link to comment https://forums.phpfreaks.com/topic/52127-solved-logging-out/#findComment-257095 Share on other sites More sharing options...
lewis987 Posted May 19, 2007 Share Posted May 19, 2007 the browser keeps the data in its cache, if the user clicks on a link on the page they will be requested to login Quote Link to comment https://forums.phpfreaks.com/topic/52127-solved-logging-out/#findComment-257100 Share on other sites More sharing options...
cooldude832 Posted May 19, 2007 Share Posted May 19, 2007 try refreshing it by clicking on the URL also you might be reinitalizing the sessions on that page Quote Link to comment https://forums.phpfreaks.com/topic/52127-solved-logging-out/#findComment-257101 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.