会话在会话超时之前到期 [英] session expires before session timeout

查看:79
本文介绍了会话在会话超时之前到期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的,

专家,



我需要这个问题的帮助会话在会话超时之前到期

i已经超时了30分钟但它在10分钟aprox中到期......

这里在web.config sessionState timeout =30mode =InProccookieless =false

写的是......



我正在使用表格认证..



< authentication mode =Forms>

< forms loginUrl =default.aspxpath =/slidingExpiration =falsetimeout =30/>





i nedd help ,,



谢谢

提前。

解决方案

如果您设置 slidingExpiration = false ,则认证cookie将在值分钟后过期,无论用户是否在其中发出请求是否超时值。

因此它应设置为' true '

表单身份验证超时值设置验证cookie设置为有效的时间(以分钟为单位),意味着,在值分钟后,cookie将过期,用户将不再进行身份验证 - 将自动重定向到登录页面。

Dear,
Experts,

I need help on this issue session expires before session timeout
i have given timeout for 30 minutes but its expires in 10 minute aprox...
here in web.config sessionState timeout="30" mode="InProc" cookieless="false
is written...

and i am using forms authentication..

<authentication mode="Forms">
<forms loginUrl="default.aspx" path="/" slidingExpiration="false" timeout="30"/>


i nedd help,,

Thank You
In Advance.

解决方案

If you Set slidingExpiration=false the authentication cookie will expire after value number of minutes regardless of whether the user makes a request within the timeout value or not.
so it should be set to 'true'
The Forms Authentication Timeout value sets the amount of time in minutes that the authentication cookie is set to be valid, meaning, that after value number of minutes, the cookie will expire and the user will no longer be authenticated -he will be redirected to the login page automatically.


这篇关于会话在会话超时之前到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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