Jump to content

Logging out


gilespatrickson

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.