Zubrag.com :: Forum

zubrag.com => Password Protect Advanced => Topic started by: samv on January 07, 2013, 01:27:03 PM

Title: Logout problem?
Post by: samv 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.