I want to inject cookies into Android Browser from My App's HttpClient's Cookie Store, is that possible, I do not mean WebView.
Indirectly - your server can modify cookies that can be read by browser
Related
I have develop an android application which uses webview to convert my website into mobile app. there are few cookies set from website to store data while user uses website on android app. Issue is when user logout from the app it removes all cookies accept session related cookies. so i want to remove all cookies which is created by android app but not remove those cookies which is created by website. i have use below function to not remove session related cookies by commenting code for those device which has OS less then lolipop but what to do for rest device which has higher version then lolipop.
cookieManager.removeSessionCookie();
above code i have commented to not remove session cookie but that will not work with higher version.
So can anyone suggest me what to do to prevent cookie to be removed?
I working on a mobile app that has some functionality that is not implemented natively but only on an external website. The user is logged in into the app, but when opening the external links (both in a webview and in the external browser) it has to log in again to access the functionality.
Is there any way to authenticate the user in the browser too without compromising security and/or user experience?
Any experience / best practice to share?
If you're using something like a REST API to log in then it may be returning something like a session token in the response cookies so that subsequent requests to the API will know which user they refer to. For that case you would need to copy the API cookies into the URL request for the web view or into the web view's cookie store before making the request, as I recall.
We have a large site that use cookie for authentication. We're going to have a simple android application for site with little features. The application use JWT for authetication.
We want the application to use through webview to access the site`s full features. When User run the application, first authenticate is done.
Problem: I want when user route to webview from the application change from JWT to Cookie authentication. Is this possible? If you can help?
Site develop by asp.net core 2.0;
let's say I visit some dedicated website www.mysite.com, that placed a cookie in my browser.
later, I want to use that cookie from within some app that opens a webview to the same website, so I can somehow correlate the activity that he user had done via the browser, and the activity he is now doing from within the native app's WebView.
Is it possible to share cookies like that?
Is it possible to share cookies like that?
No, for blindingly obvious privacy and security reasons.
Now with OkHttpClient, you can send a request to a browser and access its cookies
Do WebView instances in my process share cookies and cache with WebView instances created by other processes?
Say I have my website www.example.com, and there's a login page there. If the user logs into my site from the native browser app, then they come into my app later on where I have an embedded WebView instance, will their login cookies still be present? Or do they have to login again?
Thanks
The user will have to log in again, the cookies used by the native browser are not accessible to your webview.