Session variables

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
fluidbyte
Forum Commoner
Posts: 30
Joined: Tue May 27, 2008 2:07 pm

Session variables

Post 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?
User avatar
aceconcepts
DevNet Resident
Posts: 1424
Joined: Mon Feb 06, 2006 11:26 am
Location: London

Re: Session variables

Post by aceconcepts »

Show your code.
Post Reply