In some of my posts, when I have stored user information in cookies, all the comments and answers have said something like, "... answer to problem ... but DON'T USE COOKIES TO STORE USER INFORMATION. IT'S INSECURE."
In one of my test websites, I store a cookie called "user" that holds the logged in user's username, as well as a session variable. I know this may be personal information, but on the webpage it says the username, so would it really matter?
It would matter if a hacker could get onto my website to change the value of the "user" cookie and session, and log into someone's account without their username.
Is this possible? If so, how?
Also, if I need to update my security, how would I have an option of "Stay Logged In" without a cookie?
Thanks for any help.