Hi
I’m working on a project that requires users of the site to login. As part of the requirements they want after set amount of inactivity that the page should “Timeout” and automatically display the login page.
This would be easy if I could use JavaScript, but again as part of the security requirements they have disabled all browser side processing. Oh, one more thing, the client is using IIS on a Windows server.
It there a solution to this? Thanks in advance for any suggestions.
How to set a browser timeout?
Moderator: General Moderators
- RobertGonzalez
- Site Administrator
- Posts: 14293
- Joined: Tue Sep 09, 2003 6:04 pm
- Location: Fremont, CA, USA
Re: How to set a browser timeout?
In short, the answer is no. the server serves up pages and then forgets about them. It could care less how long ago the page you are on was served. It will care about whether the next page served is within an appropriate amount of time to maintain session state, but it doesn't know that until the request for that page comes in. The only way to achieve a page based time detection is within the browser since the browser is concerned with the page you are on, while the server is not.Ir0nSpIkE wrote:Hi
I’m working on a project that requires users of the site to login. As part of the requirements they want after set amount of inactivity that the page should “Timeout” and automatically display the login page.
This would be easy if I could use JavaScript, but again as part of the security requirements they have disabled all browser side processing. Oh, one more thing, the client is using IIS on a Windows server.
It there a solution to this? Thanks in advance for any suggestions.
Re: How to set a browser timeout?
Thanks. What I was thinking exactly, but I thought I should double check with those more knowledgeable than I before I tell my boss.Everah wrote:In short, the answer is no.