Notifying client before session timeout

  • Thread starter Thread starter Steve Caliendo
  • Start date Start date
S

Steve Caliendo

Hi,

How can I notify the client that their session is about to timeout?

I've placed a timer into global.asax, but this, for example, doesn't work
because it's not a page.

Page.Controls.Add(New LiteralControl("<script>alert('You are about to
timeout.')</script>"))



Thanks,

Steve
 
You can look at using the client side javascript "setTimeout" passing a
function name.

Here is a simple thread that shows the syntax for this method.

http://www.webdeveloper.com/forum/showthread.php?threadid=30759

You will still have to cause a postback of some sort to refresh the session
on the server, but that exercise is left for the reader. "Unless you need
help with it."

bill
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top