简体   繁体   中英

Forms authentication ticket is storing password in a cookie?

It's recommended that we should never store passwords in cookies. By using and storing .net forms authentication tickets in cookies aren't we doing just that?

No, because:

  1. Ticket does not contain password. It contains just information about user it was created for (user name), date when it was created, date when it expires.
  2. Information above is encrypted and can only be decrypted by server.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM