Session variables
Posted: Mon Jun 09, 2008 9:52 am
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?
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?