views:

174

answers:

3

Hi All,

We are trying to develop a timeout feature in application where we want alert user saying that the application log out will happen in x time will display the count down timer. Once the timeout we will be force fully logging out the user. For displaying the log out information we thought of displaying a pop-up with relevant message which can close itself and initiate log out on timeout. The problem with display of pop-up is we have to send a request to the server which will reset the session timeout set at server level.

For achieving the above requirement is there any way to open a pop-up without sending the request to server. We will decide the content of the pop-up using DHTML.

Kindly help us in resolving this issue.

Thanks in advance ....

+1  A: 

Hi,

You could use jQuery both to display an alert with a count down and to send an ajax request to the server resetting the session timeout, without having to refresh the screen.

Kind regards, Guillaume Hanique

Guillaume Hanique
+3  A: 

I agree with Guillaume that a DHTML window would be better, but this should work if you want a real popup window.

var win = window.open('about:blank');
win.document.body.innerHTML = '[Window body content here]';
Jason Harwig
It was a simple but effective solution :)
vcosk
+2  A: 

Best bet (simple, poerful, documented): http://digitarald.de/project/roar/

Relies on Mootools.

SamGoody
It was not possible to implement this solution in our product but thanks for suggesting it. We will implement it in our new products :)
vcosk