FormsAuthentication AuthCookie data type
Posted
by FreshCode
on Stack Overflow
See other posts from Stack Overflow
or by FreshCode
Published on 2010-04-16T10:56:24Z
Indexed on
2010/04/16
11:03 UTC
Read the original article
Hit count: 167
Does the original data type of the username
string in a call to FormsAuthentication.SetAuthCookie(...)
make any difference with regards to security or code maintainability?
As I understand it, the cookie is encrypted and used to identify a user on each request. I'm curious whether it should affect the design of the primary key on my Users
table in my database, eg. Guid
vs int
or a unique username string.
© Stack Overflow or respective owner