May 25, 2020, 05:38:36 AM *
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]
Author Topic: Logout problem?  (Read 5250 times)
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.");



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.


Pages: [1]
Jump to:  

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