1

Using iOS specific metatags I enabled webapp mode on a WP site. It works nice, but I'm facing a problem:

Switching between apps breaks the WP session. The webapp loads the splash image again and shows the specified index page instead of the page visited and left earlier and the logged in state is reseted as well.

I've found an answer to a similar question here, though it's not WP specific.

Is there a WP way to keep the webapp alive while it is in the background? Extending WP session with auth_cookie_expiration filter could solve the problem?

3
  • +1 but have you already tried it? Or are you asking for someone who tries it for you?
    – kaiser
    Oct 27, 2013 at 12:24
  • 1
    Btw, did you try that as logged in user? Then the auth cookie should update itself - $rememberme credentials are then set according to wp_signon().
    – kaiser
    Oct 27, 2013 at 12:31
  • Thanks. It seems to work and users stay logged in while multitasking (and even after rebooting), if they ever logged in and clicked the remember me checkbox in Safari. Since it works this way without extending the cookie session I didn't add any other wp filter.
    – elbatron
    Oct 27, 2013 at 15:57

1 Answer 1

1

To stay logged in WP based webapps on iOS devices you simply have to log in and click the remember me option on your webapp wp-login.php page in Mobile Safari at least once.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.