Authorization security of ASP.NET Forms authentication

Posted by Tomi on Stack Overflow See other posts from Stack Overflow or by Tomi
Published on 2010-05-18T10:24:51Z Indexed on 2010/05/18 10:30 UTC
Read the original article Hit count: 195

I'm using Forms authentication in ASP.NET MVC website and I store user account login name in AuthCookie like this:

FormsAuthentication.SetAuthCookie(account.Login, false);

I want to ask if there is a possibility that user on client side will somehow manage to change his login name in AuthCookie and thus he will be for example impersonated as someone with higher privileges and authorized to do more actions than he is normally supposed to have. Also is it better to save in this cookie user account login name or user account ID number?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc