IOS 8 - standalone web application will not clear cache / cookies

I am developing a mobile site at work that supports offline mode when added to the main screen. Everything works for both Android and iOS. I just upgraded my iPhone 5c to iOS 8, and whenever I open a web application from the icon on the main screen, it signs me up, but with the account I used before. I press the exit button and it works in the browser, but it does not seem to clear the cookies offline.

I tried removing and adding the main screen icon again, even with ?v=2 at the end, but no luck. I even restarted the phone and deleted the history and data in Safari settings.

I know that so far little is known about iOS 8, but it seems to be a mistake. Any ideas?

 $(document).on('tap', '#site-nav #sign-out', function() { $.removeCookie('screen', {path: '/', domain: '.'+window.location.hostname}); $.removeCookie('token1', {path: '/', domain: '.'+window.location.hostname}); $.removeCookie('token2', {path: '/', domain: '.'+window.location.hostname}); $('#site-nav').panel('close'); Backbone.history.navigate('sign-in', {trigger: true}); return false; }); 
+5
source share

Source: https://habr.com/ru/post/1202901/


All Articles