Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
When I save my Webapp (with <meta name="apple-mobile-web-app-capable" content="yes">) to Home Screen every time I reload it it opens Login Screen (extended-users).

In another project where I implemented User Login myself via Cookies I worked around with:
Code: Select all
<cms:php>
   // Start or resume session
   session_start();

   // Extend cookie life time by an amount of your liking
   $cookieLifetime = 365 * 24 * 60 * 60; // A year in seconds
   setcookie(session_name(),session_id(),time()+$cookieLifetime);
</cms:php>

But now using Couch Login-Feature with extended users this does not work.

Anyone an Idea to get this working so that a user stays logged when reopening a Home Screen Webapp?

Regards,
Olliwalli
The 'extended users' module natively has a 'Remember me' feature that you can use - please see the docs https://www.couchcms.com/docs/extended- ... s/post.htm (find the reference for 'k_user_remember' field).

Hope this helps.
KK, thank you so much!

It just worked on first try, even when manually adding input (in order to not get the input wrapped with label around):
Code: Select all
<input type="checkbox" name="k_user_remember[]" id="k_user_remember0" value="1" checked>
3 posts Page 1 of 1