Armin
Armin

Reputation: 78

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?

Upvotes: 0

Views: 290

Answers (1)

Evk
Evk

Reputation: 101443

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.

Upvotes: 1

Related Questions