Login   Register  
PHP Classes
elePHPant
Icontem

Logout and autologin

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us

      Access user Class  >  All threads  >  Logout and autologin  >  (Un) Subscribe thread alerts  
Subject:Logout and autologin
Summary:Session is not closed by log_out() method when using autologin.
Messages:4
Author:Mario Martinez
Date:2010-07-04 05:41:41
Update:2010-07-06 16:10:28
 

  1. Logout and autologin   Reply   Report abuse  
Picture of Mario Martinez
Mario Martinez
2010-07-04 05:41:41
Session is not closed by log_out() method when you opt to check Autologin option in login.php. you are redirected to logout page and further you can vistit any protected page and session is still active (you can view the page, and get_user_info() shows the details).
log_out() works fine when you don't use autologin, you can exit normally.
Tested in several browsers.
Any suggestion on what is wrong?
Thanks.

  2. Re: Logout and autologin   Reply   Report abuse  
Picture of Olaf Lederer
Olaf Lederer
2010-07-04 10:41:38 - In reply to message 1 from Mario Martinez
Hi,

check the latest version from my website.

regards
Olaf

  3. Re: Logout and autologin   Reply   Report abuse  
Picture of Mario Martinez
Mario Martinez
2010-07-04 16:29:56 - In reply to message 2 from Olaf Lederer
Hi Olaf, thanks for replying. In fact I'm using the latest version , 1.99 (2008). I think I'm using it the right way as I can logout the normal way, but if I checked autologin in login page then the session cannot be logued out.

Useful info:
a) COOKIE_PATH = "/"
b) when I delete the cookie manually, and then click to log out, then the session ends normally.

  4. Re: Logout and autologin   Reply   Report abuse  
Picture of Mario Martinez
Mario Martinez
2010-07-06 16:10:28 - In reply to message 2 from Olaf Lederer
I've actually find 2 issues in a couple of websites with this class (v1.99) and different setup of directories. The class works fine but:

1) The session ends quickly (with no order to logout) in any random protected page.

2) By using Autologin the session cannot be logged out.

Any suggestion on what is happening?
Thanks.