Logging user out when browser closes

Asked by:
HubFans / n/a Points
Time:
2015-03-30 3:17 am EST
Category:
Website Troubleshooting
Hits:
62
I was told by default Wordpress makes your login cookie expire on browser close. Unfortunately, that is not happening with my website. I have also installed plugin Configure Login timeout. But that isn't helping with ending the session when the user closes the browser. Is there something I can do to update this?

To ask this user for more information, please first login.

To submit an answer, please login.

ANSWERS

0

ScottM
Staff
16,266 Points
2015-03-30 10:46 pm EST
Hello,

Thank you for your question on logging out of WordPress. In searching, I came across a possible fix:

1 )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. This gives you an un-minified version of code to edit.
2) Search for the function “getPostData” and add the below lines after el = $(el);


if(el.is('input:checkbox') && !(el.is(':checked'))) {
return;
}


Please give that a try and let us know how it works out.

Kindest Regards,
Scott M

To submit a comment on this answer, please first login.

Want to share this Question?

Related Articles

It looks like there are no related articles.
Would you like to ask a question about this page? If so, click the button below!
Need More Help?

Help Center Search

Current Customers

Email: support@WebHostingHub.com Ticket: Submit a Support Ticket
Call: 877-595-4HUB (4482)
757-416-6627 (Intl.)
Chat: Click To Chat Now

Ask the Community

Get help with your questions from our community of like-minded hosting users and Web Hosting Hub Staff.

Not a Customer?

Get web hosting from a company that is here to help.
}