You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2019/11/06 15:32:09 UTC

[GitHub] [cordova-plugin-inappbrowser] michaellavender commented on issue #509: iOS cookies not persistent after app exit and restart unlike Android

michaellavender commented on issue #509: iOS cookies not persistent after app exit and restart unlike Android
URL: https://github.com/apache/cordova-plugin-inappbrowser/issues/509#issuecomment-550363198
 
 
   Per my comment above, this actually was a problem with how we were creating the cookies server-side. They were being created as session cookes (without an expiration date), so would expire as soon as the app was closed because each instance of the app creates a separate inappbrowser instance. By setting an explicit expiration date on the cookie returned by the server this causes the browser to treat it as persistent, rather than for just a single session, and it's there for subsequent instances of the app. In our case we have no need for the cookie to ever expire so we're setting it to have a 12/31/9999 expiration when returned in the response from the server.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org