theEclipse
Programmer
I am writing a script base that is using sessions and I find myself wondering about the security of the session itself.
The user login system is database driven and a session is started after authentication. My question is what should I store in the $_SESSION to keep the user statistics. As of now I am storing the user name and their unique database id.
The thing that I dont want is for a user to somehow bubble up from an user-level login to an admin-level.
Should I be encrypting or hashing the information I am storing in the session?
Robert Carpenter
"Disobedience to conscience is voluntary; bad poetry, on the other hand, is usually not made on purpose." - C.S. Lewis (Preface to Paradise Lost)
ô¿ô
The user login system is database driven and a session is started after authentication. My question is what should I store in the $_SESSION to keep the user statistics. As of now I am storing the user name and their unique database id.
The thing that I dont want is for a user to somehow bubble up from an user-level login to an admin-level.
Should I be encrypting or hashing the information I am storing in the session?
Robert Carpenter
"Disobedience to conscience is voluntary; bad poetry, on the other hand, is usually not made on purpose." - C.S. Lewis (Preface to Paradise Lost)
ô¿ô