• I am using an ajax page loader to load pages on the front end of my site. I have found that if I let the site idle for too long my nonce expires for my login and I am redirected away from the page I am on. Some of the pages on the front end require the user to be logged in and when they are logged out it interupts their work flow.

    I was wondering if anyone could advise a method to discover if the user has been logged out and display a login popup like the admin dashboard offers when the member is logged out.

    Is the best method to accomplish this by creating an auto ajax request on a timer?

    Thanks,
    Jesse

Viewing 1 replies (of 1 total)
  • Thread Starter stoi2m1

    (@stoi2m1)

    I have found the ajax action is the heartbeat. Looks like wordpress checks on some interval based on user activity whether the nonce and credentials are still valid. I am looking for a similar feature which I could us on the front end. What I am in need of is getting the login popup to display when the credentials and/or nonce have expired.

    Thanks,
    Jesse

Viewing 1 replies (of 1 total)
  • The topic ‘Ajax Page Loader and Logout when Nonce Expires’ is closed to new replies.