如何设置会话永不过期 [英] how to set sessions never expire

查看:99
本文介绍了如何设置会话永不过期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



如何在Web应用程序中设置会话超时。在我的应用程序中,我正在使用登录页面,并且在登录凭据的帮助下,我正在通过使用凭证作为页面内的会话数据来读取服务,它将在登录会话超时时重定向到登录页面。



我在我的web.config设置会话



< sessionstate mode =Formstimeout =30>



但是它不工作它将默认超时20分钟



所以让我知道如何设置会话永远不会在我的网络应用程序中过期



提前致谢..........

解决方案

除颤器:无限制地保持ASP.NET会话无限 [ ^ ]


www.codeproject.com/KB /session/SessionForever.aspx





检查这个。

它可以帮助你!


浏览下面的url并下载ASPNET_jQueryUI_Dialog_Timeout示例试试吧



工作正常



https://skydrive.live.com/?cid=f7c93b143c55f787&sc=documents&id=F7C93B143C55F787%21230#cid=F7C93B143C55F787&sc=documents [ ^ ]

Hi all,

How to set session timeout in web application. In my application I'm using Login page and with the help of login credentials I'm reading services by using credentials as sessions data inside the pages, It will redirect to login page when login session timeout.

im set session in my web.config

<sessionstate mode="Forms" timeout="30">

but it's not working it will take default timeout 20 minutes

So let me know how to set the sessions never expire in my web application

Thanks in advance..........

解决方案

The Defibrillator: Keeping ASP.NET Session Alive Ad Infinitum[^]


www.codeproject.com/KB/session/SessionForever.aspx


check this.
may it will help u!


go through below url and download ASPNET_jQueryUI_Dialog_Timeout example try it

working fine

https://skydrive.live.com/?cid=f7c93b143c55f787&sc=documents&id=F7C93B143C55F787%21230#cid=F7C93B143C55F787&sc=documents[^]


这篇关于如何设置会话永不过期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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