Remember me Cookie best practice?

前端 未结 7 1614
感动是毒
感动是毒 2020-12-01 05:30

I read about many old questions about this argument, and I thought that the best practice is to set up a cookie with username,user_id and a random

相关标签:
7条回答
  • 2020-12-01 06:25

    I always knew that the "remember me" feature only converted the session cookie (i.e. the cookie with the session ID) from expiring when closing the browser to a future date, it doesn't involve saving additional data, only extending the session.

    And yes, if an attacker gets the cookie, it can impersonate the user. But this is always valid, and has nothing to do with "remember me".

    0 讨论(0)
提交回复
热议问题