Redirect To Homepage
-
When I install my app on my Android device and login, all is fine, but when I get logged out after a period, when I load the app, it can often get in a loop between clicking login and then returning to the same login page saying I am already logged in.
How is it possible for the PWA to always redirect to the homepage on loading and how to make the PWA be automatically logged in on loading? Those two issues are the most important at the moment.
I tried adding this snippet of code to my functions.php file, but it didn’t help
add_filter(‘auth_cookie_expiration’, function() { return YEAR_IN_SECONDS * 2; // Set authentication cookie to expire after 2 years});
Is there another way to make the PWA be logged in upon loading and to ALWAYS go to the homepage on loading?
Thanks so much
The page I need help with: [log in to see the link]
- You must be logged in to reply to this topic.