Welcome Guest, Not a member yet? Register   Sign In
Best way to prevent logged in users from messing with ID passed in query strings?
#5

[eluser]attos[/eluser]
My personal opinion is not to trust the client (the browser in this case). What I do is to keep the id in the session. When the user successfully logs in I set the id in the session (BTW I use database sessions) and retrieve it for every request.
I do not allow users to change their id. It's an auto-generated database field value. I see no reason to change it. What can be used is a username. This can be be changed as long as it's not taken by somebody else.


Messages In This Thread
Best way to prevent logged in users from messing with ID passed in query strings? - by El Forum - 12-09-2009, 11:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB