Enterprise Browser not clearing session cookies on exit

// Expert user has replied.
D DD HH 1 year 11 months ago
17 2 0

Enterprise Browser 3.3.2.1, device is TC77. Our web app creates a session cookie, but when enterprise browser is closed out and restarted the session cookies persist. I even restarted the device and session cookies persist. DeleteCookiesOnLaunch and DeleteCookiesOnExit are left to their defaults (which is zero). We can't use those options because we have some cookies that aren't session cookies that we need to persist, we just need the session cookies to be deleted when enterprise browser is closed.

Please fix, thanks.

Please Register or Login to post a reply

2 Replies

E Edward Correia

Perhaps the NetworkCookieDatabase parameter will help: 

https://techdocs.zebra.com/enterprise-browser/3-3/guide/configreference…

Thank you for choosing Zebra products.

Eddie Correia

D DD HH

Thanks for the suggestion. NetworkCookieDatabase was left to the default value "file://%INSTALLDIR%/cookies.db" but that file is never actually created. I changed the file name and directory to see if that would have any effect and it did not. The documentation says "If not specified, cookies will not persist." so I cleared the field in the config and that changed nothing. Cookies (including session cookies) still persisted across enterprise browser restarts and device reboots.

I did test out the DeleteCookiesOnLaunch an DeleteCookiesOnExit settings and they both do work, but they don't give me the behavior I need. These settings cause Enterprise Browser to clear all cookies on launch or exit. I only want it to clear session cookies, other cookies should persist.

I did see the Cookies config setting, saying it " Controls whether cookies can be used by Enterprise Browser". Just as a test, I set this to 0 and it seemed to have no effect at all. The browser still stored cookies and still persisted all cookies across restarts. This was just kind of a shot in the dark attempt, I need cookies for my app to function, I just wanted to see what effect this config setting would have.

I did also see the ClearWebData mention that it will "Determines whether cookies and other WebView data stored by the app will be erased when app returns to the foreground". As a test I set this to 1 along with NavigateToHomePage. This did indeed make enterprise browser navigate back to the home page when the home button was pressed, but it did not clear the cookies.

CONTACT
Can’t find what you’re looking for?