WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Marjolijn Harvey
    Member
    Posted 2 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 3.0.4.1 .
    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!

    Marjolijn

    http://wordpress.org/extend/plugins/login-with-ajax/

  2. Subharanjan
    Member
    Posted 2 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'))) {
              return;
          }

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

    Thanks,
    Subharanjan

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic