PHP Classes
elePHPant
Icontem

Logout

Recommend this page to a friend!

      PHP Secure Login and Registration  >  PHP Secure Login and Registration package blog  >  PHP Secure Login Scri...  >  All threads  >  Logout  >  (Un) Subscribe thread alerts  
Subject:Logout
Summary:Logout does not die session
Messages:1
Author:Ye Lin Aung
Date:2019-03-23 16:44:19
 

 


  1. Logout   Reply   Report abuse  
Ye Lin Aung - 2019-03-23 16:44:19
When i press logout buttom ,it go to login page but
When i tried
example/index.php to
example/user.php,
Can still access to user session,
So i changed
user.php like:
if(!isset($_session['user']['id'])){
header('Location: index.php');
}else{
$user->userPage();
exit();
Now every time i tried to
access example/user.php without login
It redirect to login,(index.php)page .sry for my bad eng