Answer the question
In order to leave comments, you need to log in
Can I use encrypted cookies to store sessions?
There is an idea to use encrypted signed (HMAC) Cookies to store the user session on the client side. There is a security issue where an attacker, knowing the key, can create a Cookie for any user. But this problem can be circumvented if, together with the user id, a part of the user's password hash is stored in the Cookie. Thus, the maximum that an attacker can do is to hack one user.
What could be the disadvantages of this method?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question