What is the pros and cons in using FormsAuthentication to persist login cookie?

Posted by stacker on Stack Overflow See other posts from Stack Overflow or by stacker
Published on 2010-05-21T21:11:04Z Indexed on 2010/05/22 10:00 UTC
Read the original article Hit count: 170

Filed under:
|
|
|
|

What is the pros and cons in using FormsAuthentication to persist a login cookie?

I see that StackOverflow ignore FormsAuthentication and instead implemented a different strategy to persist a login cookie.

Pros

  1. Out of the box implementation for persistent login feature.

Cons

  1. The login feature depends on the machine key which mean that I need to make sure that the machine key is the same on all the servers in the farm.
  2. The cookie contains wired encrypted values that don't really make sense to store in the cookie.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about session