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

后端 未结 3 1168
夕颜
夕颜 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 17:09

    The cookie timeout is also limited by IIS and defaults to something low like 20 min. To change this:

    1. Open IIS Manager.
    2. Right click your site and select properties.
    3. Select the ASP.NET tab and click Edit Configuration.
    4. Select the Authentication tab.
    5. Select Enable sliding expiration.
    6. Set the Cookie timeout to a longer value. To set to 30 days, enter 30.00:00:00.
    7. Click OK and exit IIS manager.

    enter image description here

提交回复
热议问题