Page 1 of 1

How to set a browser timeout?

Posted: Fri Oct 27, 2006 5:02 pm
by Ir0nSpIkE
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.

Posted: Fri Oct 27, 2006 5:03 pm
by Luke
is php installed?

Re: How to set a browser timeout?

Posted: Fri Oct 27, 2006 5:07 pm
by RobertGonzalez
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.
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.

Re: How to set a browser timeout?

Posted: Mon Oct 30, 2006 11:11 am
by Ir0nSpIkE
Everah wrote:In short, the answer is no.
Thanks. What I was thinking exactly, but I thought I should double check with those more knowledgeable than I before I tell my boss.