Topic: Logout with example1.php does not work (Read 761 times)
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« on: Feb 25, 2008, 11:39:58 AM »
Hi all,
I'm testing phpUserClass. I've set up the db-table and made the changes in access.class.php Then I created an account with example2.php Afterwards I logged in at example1.php All works well. But when I now try to logout nothing happens.
Is this a known prob? What could be my mistake? Is it a problem with the cookie? I didn't check the "remember me" box.
Thanks a lot, Tobi
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #1 on: Feb 25, 2008, 11:47:44 AM »
To answer myself
changed: var $remTime = 2592000;//One month to: var $remTime = 1;//2592000;//One month
That was, why the logut failed. Don't know if this was ok
Best regards, DerTobi
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8029
41131 credits Members referred : 3
« Reply #2 on: Feb 25, 2008, 01:56:48 PM »
Hi DerTobi,
Are you using the latest version of the class? (0.91)
We have fixed that problem in the previous release.
I crack Photoshop!
Posts: 3
22 credits Members referred : 0
« Reply #3 on: Feb 26, 2008, 01:53:39 PM »
Hi Nikolas, yes I'm using 0.91 (@version $Id: access.class.php,v 0.91 2007/11/09 10:54:32) and I see, that the problem still occurs, when I tell example1.php to "Remember me?". Then I cant "logout" again, until I delete the cookie in my browser for my own.
My php -v is:
Code:
PHP 5.2.5-0.dotdeb.0 with Suhosin-Patch 0.9.6.2 (cli) (built: Nov 12 2007 19:09:20) Copyright (c) 1997-2007 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
Are you using the latest version of the class? (0.91)
We have fixed that problem in the previous release.
I'm having this problem as well, using v0.93. I made the change that dobberph mentions above, which makes the logout link work, but then the login isn't remembered (despite me ticking that option) when I restart my browser. Any ideas?
I am a metal monkey!
Administrator Community Supporter?
Jedai Sword Master
Gender:
Posts: 8029
41131 credits Members referred : 3
« Reply #5 on: May 26, 2008, 01:03:25 AM »
I will check it tomorrow and let you know. It works fine with me do I will have to check on the php settings. Matt can you send me a link to your phpifo?
I crack Photoshop!
Posts: 3
18 credits Members referred : 0
« Reply #7 on: May 28, 2008, 12:01:53 AM »
I managed to get it to work, first by adding my domain to the setting var $remCookieDomain, and then by changing this line in "function logout($redirectTo = '')" like this: (added slash and domain)