Base solution for your next web application
Open Closed

Log out after a few minutes #1722


User avatar
0
unis created

Hello,

I have an application that should log out after a few minutes of inactivity, but this this not happening. Even after one night, the next day can sail smoothly. How can I force the log out the user after a certain time?


1 Answer(s)
  • User Avatar
    0
    ismcagdas created
    Support Team

    Hi,

    Metronic has an example page what you are looking for. <a class="postlink" href="http://keenthemes.com/preview/metronic/theme/admin_4_material_design/ui_idle_timeout.html?p=page_user_lock_1">http://keenthemes.com/preview/metronic/ ... ser_lock_1</a>

    This is the plugin used <a class="postlink" href="https://github.com/ehynds/jquery-idle-timeout">https://github.com/ehynds/jquery-idle-timeout</a>.

    I haven't tried this but, I think you just need to call Account/Logout when this jquery plugin detects if user is idle for an amount of time.