Session variables changing

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fstrnu
Forum Newbie
Posts: 11
Joined: Fri Dec 19, 2003 9:11 am

Session variables changing

Post by fstrnu »

Weird. Anyone else have ever have this problem?

I have a problem with session variables changing unpredictably. For example, say my username is john. So, when I login as John, I set a session variable to 'John'. The problem is it won't "stick". For example, I load a php page and it says 'John', which it should. But the next page I go to or even if I reload the same page, it changes to Sally. Any ideas? Thanks.

Also, this does not appear to happen with all session variables. And I am using only a few session variables and they are all based on account information, username, real name, etc. Thanks again.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

did you write your own session handler? can you post your code?
Post Reply