Jump to content

[SOLVED] logging out


laron

Recommended Posts

i have a logout link on my (portal page, once your logged in) to a php script with the following code: (this should destroy the sessions and log them out)

 
<?php
session_start();
session_destroy(); 
header("Location: http://site/login/index.php");
?>

and when after it directs you back to the login page, all you have to do is hit the back button on your browser and it will bring you back to the portal you were just at(logged in). is something going wrong with the sessions being destroyed? or is this what is sapposed to happen?

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