Jump to content

[SOLVED] login/logout


tj71587

Recommended Posts

I just created a really simple login with cookies and used

setcookie("cookie", $sid, time() + (60*60));
				echo "<meta http-equiv=\"Refresh\" content=\"0;url=page.php\">";

 

and then have a link to logout which is this.

setcookie("cookie", " ", time()-31536000);
echo "<meta http-equiv=\"Refresh\" content=\"0;url=login.php\">";

 

It works fine in IE and firefox, but logout doesnt work in opera.  Anyone have any ideas?

Link to comment
https://forums.phpfreaks.com/topic/73385-solved-loginlogout/
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.