Plex 2E

Expand all | Collapse all

Inactivity Timeout

  • 1.  Inactivity Timeout

    Posted 08-21-2017 06:23 PM

    Hi Plex Community,

     

    Has anyone implemented an inactivity timeout in a Plex app? any suggestion how to implement it?

     

    Regards,

     

    Christian 



  • 2.  Re: Inactivity Timeout

    Posted 10-04-2017 05:28 AM

    Hi Christian,

     

    Try the following :

     

    In Application Exe Function :

    • Add Clock Tick Event.
    • Fetch time out settings and convert to seconds.
    • On clock tick event , increment counter and compare with time out seconds. When counter equals time out seconds execute time out process.(Terminate with message).
    • Add a Event : ResetCounter (Initialize counter to zero)

     

    In other application functions that decide activity.

    • At the pattern level add processing in "Any Event".
    • Any Event : Trigger Event to execute Event : ResetCounter in the Application Exe.

     

    Hope this helps.

    Regards

    Ashfaq Ahmed