jeeva Posted August 7, 2007 Share Posted August 7, 2007 hi frnds, i have one poblem that i cant able to destroy the session in mozilla browser. its working in IE perfectly.Still Session variables is there even after logout the page.But its not happening in IE. here my code Logout.php <?php session_start(); session_destroy(); header("Location:login.php"); any one can tell me wts the problem? Link to comment https://forums.phpfreaks.com/topic/63693-session-destroy-in-mozilla-browser/ Share on other sites More sharing options...
ToonMariner Posted August 7, 2007 Share Posted August 7, 2007 <?php session_start(); unset($_SESSION); session_destroy(); header("Location:login.php"); ?> try that Link to comment https://forums.phpfreaks.com/topic/63693-session-destroy-in-mozilla-browser/#findComment-317408 Share on other sites More sharing options...
jeeva Posted August 8, 2007 Author Share Posted August 8, 2007 now its working but if i copy the url after login and open the new window and if i paste that url, the page is going in to that particular page it supposed to redirect to login page right?. but is redirecting in IE browser not in the mozilla ...... y? Link to comment https://forums.phpfreaks.com/topic/63693-session-destroy-in-mozilla-browser/#findComment-318202 Share on other sites More sharing options...
dbo Posted August 8, 2007 Share Posted August 8, 2007 I think you need to tell it to not cache certain pages that require session. Link to comment https://forums.phpfreaks.com/topic/63693-session-destroy-in-mozilla-browser/#findComment-318209 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.