English 中文(简体)
如何为会话设定更多时间, 并创建标签从用户端选择更多时间?
原标题:How to set more time for session and creating label to select more time from user end?

我是一个学习者, 我在想我什么时候会在我的办公室看到一个应用程序...。 具有认证和会话超时的网络应用程序和所有其他应用程序一样。 但有一个标签或链接选项叫做“ 需要更多时间或更多时间才能进行会话 ”, 这个选项是给终端用户的。 如果我们点击这个链接, 它会给您的会话更多时间 。 你们能帮我写代码吗?

最佳回答

您可以设定会话超时到某种值为 30 分钟。 使用 javascript 代码来检测用户不活动或闲置时间 。

< a href=> "http://paulirish.com/2009/jquery-idletimer-plugin/" rel="nofollow" > 检测空闲时间

如果用户在20分钟内不活动, 您可以显示弹出或链接到用户, 表示您想要继续您的会话。 如果用户单击链接, 他会继续他的会话, 否则他会被重定向到登录页面 。

问题回答

暂无回答




相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Transaction handling with TransactionScope

I am implementing Transaction using TransactionScope with the help this MSDN article http://msdn.microsoft.com/en-us/library/system.transactions.transactionscope.aspx I just want to confirm that is ...

System.Web.Mvc.Controller Initialize

i have the following base controller... public class BaseController : Controller { protected override void Initialize(System.Web.Routing.RequestContext requestContext) { if (...

Microsoft.Contracts namespace

For what it is necessary Microsoft.Contracts namespace in asp.net? I mean, in what cases I could write using Microsoft.Contracts;?

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签