Zubrag.com
April 25, 2018, 06:06:22 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Logout problem?  (Read 3733 times)
samv
Newbie
*
Posts: 1


« on: January 07, 2013, 01:27:03 PM »

Dear all,

After so many problem and question on user logout or closed the browser. It 's seem to be never end question. I did modify this code to ensure every time hit logout or close browser it's really click you out from the page. Just put this all the way bottom of the login.php

 // make sure is logout
  if (!isset($_COOKIE['verify'])) {
  setcookie("verify", '', $timeout, '/'); // clear password;
    showLoginPasswordProtect("The username or password you entered is incorrect.");
}

before

?>

Also I put protect on 2 pages. First  login to first page then redirect to another page with same protect code. I don't have to login 2 time.

It's work very well.

Sam

Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC