Page 1 of 1

Session variables

Posted: Mon Jun 09, 2008 9:52 am
by fluidbyte
At login I'm handing out two $SESSION variables, one ('auth') contains the username, the other ('level') contains the users permission level (1-3). The 'auth' session works fine, and while logged in always echos the username. However, the 'level' session works after login, then after reloading the page resets itself to 1.

I'm only touching that varaible twice; once when it's assigned through a function, and then when I echo it back out. Any ideas as to why this may be happening? Is it a numerical thing? WTF?

Re: Session variables

Posted: Mon Jun 09, 2008 11:27 am
by aceconcepts
Show your code.