Jump to content


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


logout and session_destroy() help *SOLVED*

Recommended Posts

hey guys,

I made this logout script but it doesn't seem to work, all I get is a blank page and if I press back on the browser I'm still logged in..
any clues why it's not working?


if (isset($_COOKIE['remember'])) {
print("<script> location=\"index.php\"; </script>");
else {
  if (isset($_SESSION['remember'])) {
  print("<script> location=\"index.php\"; </script>");
  else {
  print("<script> location=\"index.php\"; </script>");

Share this post

Link to post
Share on other sites


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.