如果互联网连接丢失,会话未到期 [英] Session is not expiring if internet connection loses

查看:80
本文介绍了如果互联网连接丢失,会话未到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,





我在web.config文件中设置会话超时为5分钟。登录到应用程序后,我断开了我的互联网。 5分钟后会话未到期。

从我们收到连接错误的地方启动页面而不进行身份验证。



谢谢



Hyma

Hi All,


I have set in my web.config file session timeout is 5 minutes. After login to the application I disconnected my internet. After 5 minutes session is not expiring.
Launching the page from where we got the connection error without authentication.

Thanks

Hyma

推荐答案

会话是基于服务器的概念,而不是客户端 - 所以当你断开互联网连接时,你停止服务器会话完成了与客户端通信的代码,因此您没有收到任何通知。

如果您希望客户端到期,请使用Javascript计时器关闭页面。
The Session is a Server based concept, not Client - so when you disconnect your internet, you stop the server session completed code from communicating with your client, and so you don't get any notification.
If you want client side expiry, then use a Javascript timer to close the page.


这篇关于如果互联网连接丢失,会话未到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆