Web Security in IE VS Chrome & Firefox (bug)

后端 未结 3 1933
情深已故
情深已故 2021-01-11 10:21

Why is the Web Security is working differently on different browser:

Details:

I have two applications

One is a simple <

3条回答
  •  清酒与你
    2021-01-11 11:06

    The issue is not with web security at all, it's with the way you implement your security. You should never be using a userid, email, or anything important in the cookies.

    I would suggest you use the FormsAuthentication class to encrypt and decrypt your cookies, and even so, only store something such as the SessionID plus a custom hash of that session ID to verify your self when you decrypt the cookie

    Here is a site that gives a pretty good example: http://www.c-sharpcorner.com/uploadfile/nipuntomar/update-formsauthenticationticket/

提交回复
热议问题