Forms Authentication timing out when it shouldn't?

余生颓废 提交于 2019-12-03 03:47:28

This may also happen when iis recycles or terminates the application pool.

You may want to check Troubleshoot Forms Authentication It could be that the client lost their cookie.

If you manually generate the authentication ticket, you need to set the timeout in code and not the web.config

Don't mean to state the obvious, but:

  1. Are the Session and FormsAuthentication timeouts set to the same value?
  2. Is slidingExpiration set to true?

Have you checked against an application pool or worker process recycling causing the problem?

Thanks for the response guys: I have already explicitly set slidingExpiration to true in the web.config with no effect.

The timeout values are: Session: 20 minutes FormsAuthentication: 60 minutes

I have left the session timeout as is and reduced the FormsAuthentication to 12 minutes for testing. The defrib 'pings' every 10 minutes. If I leave the page inactive for 14 minutes and then click a button I get the problem #edit: but not everytime it seems!#.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!