Must be unique FormsAuthenticationTicket.Name?

I usually use the user's email address (unique), but in my current project it would be more useful to have a fully qualified user name (not unique) accessible from User.Identity.Name.

So does it really matter what I set for the authentication cookie name?

Note. I know that I can store additional information in the auth cookie.

+3
source share
1 answer

Yes you can put userName FormsAuthenticationTicketNameThis is not necessarily unique, but the ticket you received must be stored in a cookie with a unique name.

0
source

All Articles