开发者

asp.net forms authentification security issues

开发者 https://www.devze.com 2022-12-29 13:39 出处:网络
I have a kind of asp.net forms authentication with the code like that: FormsAuthent开发者_如何学编程ication.SetAuthCookie(account.Id.ToString(), true);

I have a kind of asp.net forms authentication with the code like that:

FormsAuthent开发者_如何学编程ication.SetAuthCookie(account.Id.ToString(), true);
HttpContext.Current.User = new GenericPrincipal(new GenericIdentity(account.Id.ToString()), null);

What kind of additional efforts shall I take to make authentication cookie (that is user id) more securable? (https, encoding for example)

Thank you in advance!


To get high security you should enable ssl in your web.config:

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号