gilespatrickson Posted January 3, 2009 Share Posted January 3, 2009 I have a members page. When I log out the script takes me to the login page and will not let me reload any members pages. But if I click back it will let me view previously viewed member pages. Is there a way to fix this? Here is the log out code. <?php $past = time() - 100; setcookie(ID_my_site, gone, $past); setcookie(Key_my_site, gone, $past); header("Location: login.php"); ?> Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/139354-logging-out/ Share on other sites More sharing options...
revraz Posted January 3, 2009 Share Posted January 3, 2009 If you press back, you are going through the Browser's cache not the actual website. Link to comment https://forums.phpfreaks.com/topic/139354-logging-out/#findComment-728901 Share on other sites More sharing options...
gilespatrickson Posted January 4, 2009 Author Share Posted January 4, 2009 There has to be a more secure way. If you log out of yahoo mail and click the back button it goes to the login screen. Is there a way to remove the cache? Link to comment https://forums.phpfreaks.com/topic/139354-logging-out/#findComment-729269 Share on other sites More sharing options...
Bendude14 Posted January 4, 2009 Share Posted January 4, 2009 use the session_destroy() function Link to comment https://forums.phpfreaks.com/topic/139354-logging-out/#findComment-729307 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.