I have a few website that use a userID to determine if a user is logged in. So when I login I go to my profile page which is
http://mydomain.com/?userID=100 or something like that. I met with a guy from the university security department and he showed me how he could hijack the session by setting a userID cookie on his system then set the value to 100 and hijacked the session so he was logged in as me or any user. He told me I should key on something other than a userID cookie.
Any ideas on how I should do this would be greatly appreciated. I guess I should alson not have ?userID=100 in the URL. I would appreciate any help I can get on this.
Thanks
Start Free Trial