Zubrag.com
May 16, 2012, 04:23:14 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: automatic log out  (Read 2393 times)
Mike
Newbie
*
Posts: 1


« on: April 15, 2007, 11:36:51 am »

Thank you so much for the great script
A question though - Once a user logs in, they are permanently logged in, it seems. I would like the users to be logged off once they navigate away from the protected page - I would like the script to require the user to provide a username and password every time they try to access the page.

which part of the following script i have to take out? because i tried once to take  setcookie("verify", md5($pass), $timeout, '/');
did not quiet work!
www.edwinsproductions.com/melina&edwin.php

i kept the password as the defalt one this is only for testing perposes
many thanks
Mike


 showLoginPasswordProtect("Incorrect password.");
  }
  else {
    // set cookie if password was validated
    setcookie("verify", md5($pass), $timeout, '/');

Logged
zubrag
Administrator
Hero Member
*****
Posts: 753


WWW
« Reply #1 on: April 16, 2007, 03:28:41 am »

you removed it correctly.

but I suspect you did not restarted browser after script changed. Cookie from previous script could still exist.

So remove setcookie("verify", md5($pass), $timeout, '/');  and restart browser.
Logged
Pages: [1]
  Print  
 
Jump to:  

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