I use a session cookie (rather than a persistent one) to save the user id to find out if the user is registered.
basically, the user logs in, we check the credentials, and then set the cookie session user ID userID = 37 (for this particular user, the other user will have 73 or 69, etc.)
Session.Add("UserID", 37);
my question is: is it possible for a registered user to somehow change this session cookie from 37 to 73 and thus trick the server into thinking that he is actually user 73? if yes, then what am I doing wrong, how to deal with this case? it seems insane to insert the user session user id and password and check them EVERY TIME ??
we use this userid value also in requests later to restrict them.
I am sorry if this is not a question of EXACT code, but it is very appropriate for my code.
b0x0rz
source share