ASP.Net Store User Password in Session cookie?

前端 未结 3 1644
情书的邮戳
情书的邮戳 2021-01-18 08:10

I know the Membership provider stores the user name and an expiration time in an encrypted cookie and then uses that to verify the user is still logged in for a session.

3条回答
  •  鱼传尺愫
    2021-01-18 08:48

    You should store it in session state, which never leaves the server.

    You should also try to change those web services to use authentication tickets instead of passwords (eg, OAuth), because it's never a good idea to store passwords in plain text.

提交回复
热议问题