i want to find out whether my session has timed out or not by using java script.and finally how much time is left for timeout and that i want to show as an alert.please help me with some code if possible.. [ March 01, 2006: Message edited by: Bear Bibeault ]
Well its not directly possible, but you could do something like this on every page.
Except that the act of polling the session in this way resets the session timeout, making it ineffective for determining how much time is left on the session timeout.
I assumed that the OP was more interested in determining the amount of time remaining in the session as a result of user events on the page rather than at page load time when the answer will always be the length of the session timeout itself.
Joined: Jul 06, 2005
Sorry, guess I didn't make it clear. Agreed: any access to a page resets the session timeout.