Cannot Log Out - Corrupt User
Cannot Log Out - Corrupt User
I installed with username admin.
Then i CHANGED the admin username to johnw, and i changed it's password as well
then, johnw could not log out.
i changed johnw back to admin, and changed the password back as well.
now admin can log out.
then i created a NEW user named johnw.
johnw cannot log out.
Then i CHANGED the admin username to johnw, and i changed it's password as well
then, johnw could not log out.
i changed johnw back to admin, and changed the password back as well.
now admin can log out.
then i created a NEW user named johnw.
johnw cannot log out.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Congratulations for quad posting:
1. here on the forums
2. On the SF.net bugtracker
3. On the SF.net mailinglist (twice)
4. to me privately
You forgot to post it another time as a PM to me on the forums.
I replied to you via email: This should be a cookie issue, because when you use the 'remember login' functionality s9y stores a cookie that might not get properly purged when you change the username+password of the user as you are currently logged in. In that case one might need to clear his cookies to resolve this situation.
Regards,
Garvin
Congratulations for quad posting:
1. here on the forums
2. On the SF.net bugtracker
3. On the SF.net mailinglist (twice)
4. to me privately
You forgot to post it another time as a PM to me on the forums.
I replied to you via email: This should be a cookie issue, because when you use the 'remember login' functionality s9y stores a cookie that might not get properly purged when you change the username+password of the user as you are currently logged in. In that case one might need to clear his cookies to resolve this situation.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Was Cookies!
well, well, it happened again.
clearing cookies fixed it.
this IS a bug, right? no other software i use requires me to clear cookies every time i want to log out.
clearing cookies fixed it.
this IS a bug, right? no other software i use requires me to clear cookies every time i want to log out.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Was Cookies!
Hi!
Yes, this is a bug, however a very tricky one. The login management is very complex and grew along those years. Changing the mechanism could lead to much more serious bugs, and I have not yet found the place where this happens.
If some developer can give a helping hand in finding it, this would be much appreciated. I currently need to focus my time on other aspects of s9y that have higher impacts on the user -- this bug should only occur rarely in real-life situations, and since there is a workaround it is not high-priority for me at the moment.
Best regards,
Garvin
Yes, this is a bug, however a very tricky one. The login management is very complex and grew along those years. Changing the mechanism could lead to much more serious bugs, and I have not yet found the place where this happens.
If some developer can give a helping hand in finding it, this would be much appreciated. I currently need to focus my time on other aspects of s9y that have higher impacts on the user -- this bug should only occur rarely in real-life situations, and since there is a workaround it is not high-priority for me at the moment.
Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hey, I'm supposed to be good at debugging, right? Let's see what I can do.
johnywhy, I can't duplicate your problem on any of my sandbox servers. If I could, then I would do all the editing and such myself, instead of asking you to edit files and try things out. If you're willing, I'll walk you through the edits so we can see what's going wrong.
First, the background. When you click the LOGOUT link, s9y should call serendipity_logout. That sets a session variable indicating that we're logged out, destroys the session, and deletes the cookies.
In your case, it appears the cookies aren't being deleted. Possibly the session isn't being destroyed, either, but we'll cover that only if we must. First, we'll want to verify that your cookies aren't deleted, and make sure it's a Serendipity problem.
Before we can start, we'll want to make sure you're using a recent s9y version. Update to 1.3 or better.
The idea was going to be: verify you don't have serendipity[author_information] and serendipity[author_token] cookies. Log in, verify the cookies are set. Log out, verify the cookies are deleted. But my local Firefox browser doesn't delete the cookies, either, and I don't have your problem. It must be a session problem.
Instead, let's try this: log in. Delete the author_token cookie. Do you get logged out? Log in again; delete the PHPSESSION cookie. Do you get logged out?
Do you know how to access the session directory on your webhost? We'll probably need to go there next.
johnywhy, I can't duplicate your problem on any of my sandbox servers. If I could, then I would do all the editing and such myself, instead of asking you to edit files and try things out. If you're willing, I'll walk you through the edits so we can see what's going wrong.
First, the background. When you click the LOGOUT link, s9y should call serendipity_logout. That sets a session variable indicating that we're logged out, destroys the session, and deletes the cookies.
In your case, it appears the cookies aren't being deleted. Possibly the session isn't being destroyed, either, but we'll cover that only if we must. First, we'll want to verify that your cookies aren't deleted, and make sure it's a Serendipity problem.
Before we can start, we'll want to make sure you're using a recent s9y version. Update to 1.3 or better.
The idea was going to be: verify you don't have serendipity[author_information] and serendipity[author_token] cookies. Log in, verify the cookies are set. Log out, verify the cookies are deleted. But my local Firefox browser doesn't delete the cookies, either, and I don't have your problem. It must be a session problem.
Instead, let's try this: log in. Delete the author_token cookie. Do you get logged out? Log in again; delete the PHPSESSION cookie. Do you get logged out?
Do you know how to access the session directory on your webhost? We'll probably need to go there next.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
Just a quick question: Are you using "localhost" for your blogdomain? Localhost can make trouble with setting/clearing cookies. If you can, use your IP to install/use serendipity.
HTH,
Garvin
Just a quick question: Are you using "localhost" for your blogdomain? Localhost can make trouble with setting/clearing cookies. If you can, use your IP to install/use serendipity.
HTH,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Login with different user
I have a problem that seems for me to be the same origin:
If I logged in as e.g. the admin user, logged out, and tried to log in as another user (e.g. with less privileges, or to help someone) I get logged in again as the previous admin user.
The cookies for Session and author etc still exist after logout.
And, which is worse, anybody can log in with whatever login data;
i.e. the logout does not work at all!
Version 1.3.1, freshly installed yesterday; Firefox 2.0.0.16
If I logged in as e.g. the admin user, logged out, and tried to log in as another user (e.g. with less privileges, or to help someone) I get logged in again as the previous admin user.
The cookies for Session and author etc still exist after logout.
And, which is worse, anybody can log in with whatever login data;
i.e. the logout does not work at all!
Version 1.3.1, freshly installed yesterday; Firefox 2.0.0.16
Re: Login with different user
This seems to be caused because I used a two-level domain (progruen-pb.de) instead of a three level domain; see alsoraigl wrote:The cookies for Session and author etc still exist after logout.
http://board.s9y.org/viewtopic.php?p=57349#57349
Currently I am checking this.
Re: Login with different user
Confirmed, this was a two level domain problem.raigl wrote:This seems to be caused because I used a two-level domain
So I have set the three-level domain www.progruen-pb.de under settings as home, and disabled the automatic host discovery.
-
garvinhicking
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Login with different user
Hi!
I don't understand. s9y works fine with two-level domains, I use it on garv.in with no problems...
Regards,
Garvin
I don't understand. s9y works fine with two-level domains, I use it on garv.in with no problems...
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Re: Login with different user
Well, I just tried again, and it still fails on my site (PHP 4.4.9)garvinhicking wrote:I don't understand. s9y works fine with two-level domains, I use it on garv.in with no problems...
- under not yet fully explored situations.
I will report to the bug / developer blog when I found out the exact reason and conditions.
Otherwise, Serendipity works fine without problems.