I've wrapped a web application into a native format using gonative.io...the app is working great, but i can't update cookies.
The original cookie sets appropriately (and keeps the user logged in). But if I try to update the cookie in the underlying web application, the cookie value remains unchanged.
Here are the parameters i'm using to set the cookie in php:
$sa = serialize($_SESSION);
$sab64 = base64_encode($sa);
$sab64E = $view->encryptString($sab64);
setcookie(APP_COOKIE_NAME, $sab64E, time() + 31536000, '/');
I have checked the gonative documentation for keeping users logged in, but it only says "use persistent cookies".
How can I update the cookie?