Login With Ajax
Force LogOut when user closes browser possible? (2 posts)

  1. Marjolijn Harvey
    Posted 3 years ago #

    My client is concerned that when logged in as a user, when you close your browser and then go back to the page you automatically log in and go to the user page. It doesn’t take you back to a log in screen.
    So I am wondering if we can introduce a force log out when a user closes the browser either incorporated withing this plugin or perhaps a separate plugin?

    I've done some searching, but not been able to find anything

    I'm using Log in with Ajax Version .
    The website we are using it on is http://pwordftp.co.uk/ (not actually used by my client yet, he is just setting it up for his customers after we had finished testing the upload plugin on this website)

    Thanks for any input everyone!



  2. Subharanjan
    Posted 3 years ago #

    Hi Marjolijn and All,
    Here is a small fix:

    • - Open the file “login-with-ajax.source.js” inside the widget directory and copy the whole code inside it, then paste the code into the file “login-with-ajax.js” and save. We are doing this to have un-minified version of code, for ease of editing. :)
    • - Search the function “getPostData” and add the below lines after el = $(el);
      if(el.is('input:checkbox') && !(el.is(':checked'))) {

    For more details visit: http://www.subharanjan.in/login-with-ajax-issue-solved-logout-user-when-browser-is-closed/


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Login With Ajax
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic