Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Detect mouse/keyboard inactivity

    Is there a way to detect inactivity of mouse and keyboard events after a certain time?

    For security reasons, we'd like to pop up a dialog to warn the user of inactivity with a timer and then send a session termination if the user doesn't respond.

    Thanks!

    #2
    By the way, we can't use a session timeout because we have a widget polling for updates.

    Comment


      #3
      Probably the simplest thing is to use the core GWT APIs for EventPreview - explanation toward the bottom here.

      Comment


        #4
        To clarify - this approach will give you a low-level intercept to detect *activity*. Ever time you see an event go by you reset a timer, and if that timer ever expires, that's when you trigger your pop-up threatening to end the session.

        Comment

        Working...
        X