asp.net 'Remember me' not working anymore with forms authentication

后端 未结 3 1174
夕颜
夕颜 2021-02-04 16:11

I have two websites with self written membership providers that are hostet on the same server in the same Web in different web-applications and different application pools.

3条回答
  •  爱一瞬间的悲伤
    2021-02-04 16:45

    The issue may be that you have validation keys that are automatically generated every time you launch the worker process. The cookie is encrypted, but when you come back a new server-side key is used and thus your cookie cannot be decrypted.

    Check out the machineKey section http://msdn.microsoft.com/en-us/library/ff649308.aspx

    Here is something that will generate the machineKey section for you http://www.qualitydata.com/products/aspnet-membership/help/configuration/no-machinekey.aspx

提交回复
热议问题