Pergunta

All,

Just wanted to know if it is possible to access the mobile browser cookie through Worklight app? Has anyone tried this before? Is it even possible with Cordova plugins or any other viable approach?

The typical use case is when the user clicks on any URL(view website) in the Worklight app that will direct to mobile website which will be opened on the mobile web browser(Safari or Chrome). And when the user logs out of the website on the mobile browser, we want the app to be logged out as well. The next time user gets the app to foreground, user should be challenged for authentication. So how we do access the browser cookie/cache to see if the user is logged out of the website on the mobile browser?

Thanks Paul

Foi útil?

Solução

For security reasons, the WebView's cache/cookies of your Worklight application are locked in the sandbox of your application.

Other applications (including the built-in browsers that comes with the phone) cannot access cache and cookies from the Worklight application, and vice-versa.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top