Forum Moderators: coopster
When a user logs in, he/she can choose to save the login to a cookie. I have it set up so that the cookie contains the user id (not the username).
However, what is stopping someone from changing the contents of that cookie to a different user id (guessing) to try to login under a different user?
Just looking for general ideas about some good ways/ideas to prevent this.
Thanks!
As then you do have the issue with people knowing other users id's. If this is the case then please dont tell me that the admin login is id 1...
If you use the uniqid [uk2.php.net] function then it is unlikley that people will be able to guess another user id. So storing an id is not such a large problem.