I load the page of vk.com into WebView, and log in to it.

After that, having downloaded the same page again in WebView, I do not need to log in accordingly. But if I logged in via the mobile network, and then connected to Wi-Fi (or vice versa), then in this case I need to log in.

Actually with what it can be connected, and can this be somehow corrected?

Here are the webview options

with (webView.settings) { userAgentString = Config.USER_AGENT javaScriptEnabled = true setAppCacheEnabled(true) cacheMode = WebSettings.LOAD_CACHE_ELSE_NETWORK } webView.loadUrl("https://vk.com/") 

PS I certainly understand that this is about the Cookie, and not in the cache, but by default, it saves the same cookie, because when I reload the page from the same network, I don’t need to log in again.

  • I suppose the matter is in IP (via Wi-Fi and mobile network. You come to a site with a different one) and security settings on the server side. I used to meet the settings in the accounts of some services whether to break the session when logging in from another IP - I don’t know if VC has one, maybe this isn’t configured and enabled unconditionally. - woesss

0