I want to create a cookie with ONLY a user’s username. I want our login form to remember a username (if the user chooses), but they will have to enter their password every time.
Is there any risk in just having the username in the cookie? Should there be any sort of encryption on the username?
Suggestions?
Although, this is not the best thing to do, the answer to your question is
You can encrypt and store the username in the cookie, read and decrypt at runtime
ENCRYPT:
DECRYPT