单击事件后如何启动会话超时
谁能告诉我如何在单击登录按钮后启动会话超时。 就我而言,当我运行应用程序并转到登录页面时,会话超时就开始了,但就我而言,我需要在登录屏幕中单击登录按钮后启动会话超时。
与上述问题相关的另一件事是,会话过期时,它会将我重定向到登录屏幕(这很好),但它使我输入登录凭据两次,一旦我第二次输入凭据,它就会带我进入更多页面。
等待您的回复。谢谢。
Can anyone tell me how can i start the session timeout after click of Login Button.
In my case the moment i run the application and go to Login page the session timeout is getting started but in my case i need to start the session timeout once click of Login Button in LogOn Screen.
and one more thing related to above issue the moment session expires and it redirects me to Login Screen(that is fine) but it makes me to enter Login Credentials twice and once i enter the credentials second time then it takes me to further pages.
Awaiting for your response. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
请注意,会话超时将在用户执行每个事件后自动重置,因此您不必担心,当用户单击登录按钮时,它将重置会话超时。
For your information session timeout will reset automatically after every event performed by the user, so you should not be worried about that, when user click on login button it will reset the session timeout.
您无需担心
Session
超时。Session
始终在应用程序启动时启动,但Session
超时会在任何回发或向服务器发出任何请求时重置。You don't need to worry about the
Session
timeout.Session
always initiates at your application's startup but theSession
timeout resets on any postback or any request to the server.对于您想要实现的目标来说,会话似乎是错误的。嵌入会话中的自定义计时器对象可以工作,或者形成身份验证票证,该票证将在您登录时启动。
西蒙
Session would appear to be the wrong thing for what you are trying to achieve. Either a custom timer object embedded in the session would work, or forms auth tickets which would start when you logged in.
Simon