PDA

Click to See Complete Forum and Search --> : extending session


lychew
Apr 1st, 2001, 10:10 PM
I have visited some sites that prompt users to extend their session. Anybody know how it's been done? I really need help on this.

Achichincle
Apr 3rd, 2001, 08:14 AM
I think they have some kind of an object that tracks the idle time (client-side) and then prompts the user when they've been idle for a time that is close to the session timeout setting. Does that make sense?

lychew
Apr 3rd, 2001, 08:05 PM
One way to do this is thru cookies. But i'm using session object in ASP. So i'm trying to use the session_onEnd event to achieve the same effect. Unfortunately, there's some limitation on this event that does not run the function response.redirect when the session is ended??

Achichincle
Apr 3rd, 2001, 11:03 PM
Well... I think Response.Redirect won't work since you've already written out all your HTML headers no? And since it's on the server-side I don't think it'll let you control the client...

Maybe some Javascript timer-like function that gets kicked off whenever you load a page and then if the time expires it pops up a message box?