Forum Moderators: coopster
No, it not from browser auto-fill. (I don't think.) No, it doesn't do it every time.
Anyone had a bug like this?
Either for some strange reason the login script may be written so that if it finds values in the $_SESSION array, it does not write the new values to it.
A possible solution would be to call the logout script that you use at the very start of the user login validation - this would clear any current sessions, and allow a brand new fresh session to start, though I recommend getting someone to write a new login script if possible.
I recommend getting someone to write a new login script if possible.
I think that's wise, because it appears to be connected to when the cookies are written at sign up. We haven't tested this yet, but we suspect that this happens only when a new user joins. The signup script doesn't write new values as early as it should.
This was very helpful. Thanks grallis!
Same as above, but also we have this:
Situation 2: With another account on the same computer, a another user signs up. Comes to the home page after signing in, their name does not appear as it should on their account home page. When they refresh or do about anything else, they are sent to the outside home page and shown the "wrong password" error message. When our new user signs in again, however, the name are where they should be on the user's home page and all works as it should.
Anyone can play.
session_start();
session_destroy();
session_start();
See if you don't find the bug itself and fix it then you might encounter it again someday and still not be sure what to do. So i would fix this one first and then think about another one if needed.