什么是之间的&QUOT差异;形式的逾时QUOT;,"会员userIsOnlineTimeWindow"和"的sessionState超时" [英] what's differences between "forms timeout", "membership userIsOnlineTimeWindow" and "sessionState timeout"

查看:152
本文介绍了什么是之间的&QUOT差异;形式的逾时QUOT;,"会员userIsOnlineTimeWindow"和"的sessionState超时"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是code的这些线路之间的区别:

What is the difference between these lines of code:

<forms timeout="5" />

<membership userIsOnlineTimeWindow="5" />

<sessionState timeout="5" />

非常感谢。

推荐答案

表格 FormsAuthention )用于身份验证,当它超时将注销用户。你可以用'prevent通过设置超时 SlidingExpiration 属性上用户活动的真实,它会更新形式车票(读取请求ASP)如果需要的话。这将让用户登录,而他是活跃在网站上。

Forms (FormsAuthention) are used for authentication and when it times out it will logout user. You can 'prevent' timeout by setting SlidingExpiration property to 'true' and it will renew forms ticket on user activity (read request to asp) if needed. This will keep user logged on while he is 'active' on your site.

<一个href=\"http://msdn.microsoft.com/en-us/library/system.web.security.membership.aspx\">Membership用于用户验证和 userIsOnlineTimeWindow 是有帮助你追踪用户活动,所以当它运行它将设置的 IsOnline 属性设置为假该用户。我发现了一个新的东西是它的也将同时用户isOnline设置续签的形式售票,主要区别在于它的的更新的本身自动,但只有当它的的getUser()的ValidateUser()方法运行。

Membership is used for user validation and userIsOnlineTimeWindow is there to help you track user activity so when it runs out it will set IsOnline property to 'false' for that user. One new thing I found out is that it will also renew forms ticket while users isOnline is set, main difference is that it doesn't renew itself automatically but only when its GetUser() or ValidateUser() methods are run.

会议超时,你将失去在 <找到的数据href=\"http://msdn.microsoft.com/en-us/library/system.web.httpcontext.session.aspx\">Session目的。这就是一切。

When session times out you will lose data found in Session object. That is all.

这篇关于什么是之间的&QUOT差异;形式的逾时QUOT;,&QUOT;会员userIsOnlineTimeWindow&QUOT;和&QUOT;的sessionState超时&QUOT;的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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