Why should I use session id in cookie instead of storing login and (hashed) password in cookie?

后端 未结 3 1694
清酒与你
清酒与你 2021-02-05 23:43

(I was surprised that this question wasn\'t asked on Stack for now, but I\'ve done some searching and couldn\'t find anything o.O)

I am working on service-based webapp a

3条回答
  •  粉色の甜心
    2021-02-06 00:12

    Double hashing doesn't protect you from the exploit. If one takes the stored user id and hashed password from the cookie and send to the server, he would instantly gain access. With session ids, it would at least time out.

提交回复
热议问题