1 Reply Latest reply on Dec 18, 2007 7:06 AM by Günter Schenk

    Logout upon time expiration

    Level 1
      I'm trying to set up a test so that when a user logs in, they have a preset time allotment to enter their answer. If the time runs out, I want the page to be able to save what they have done and then automatically logs them out. Does anyone know any code that could work here, any help is greatly appreciated.
        • 1. Re: Logout upon time expiration
          Günter Schenk Level 4
          Hi Mike,

          guess you can do that with some javascript added after the form :

          setTimeout('document.formname.submit()',6000); (where 6000 is the number of seconds)

          However, this approach can´t be considered fool-proof, because in case the visitor´s browser has some sort of security measure defined related to automatic execution of javascript, the user will be prompted to allow this action or not.

          Cheers,
          Günter Schenk
          Adobe Community Expert, Dreamweaver