PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Hello friends
on my home page i am having Logout hyperlink . when i click on logout it redirects me on the logout page but when i press back option in browser it goes to home page (though the session has expired).
the system should be like: When i press back option on logout page it should go on logain page instead of my home page.
thanks for replying
code is working.........but on logout page i am destroying the session so when i click back option, value of
$_SESSION['authuser']=0; will not go to my home page.....and it is giving
Notice: Undefined index: authuser in C:\wamp\www\inventory\index.php on line 3 on my home page when i click back option
i destroy session like this in logout page
<?php
session_start();
$_SESSION['authuser']=0;
$user=$_SESSION['user'];
session_unset();
session_destroy();
?>