howto save webview's session
howto save webview's session
hi, is there a sample how to save and restore a webview's session? thanks!
-
- Legend
- Posts: 2089
- Joined: Thu Jul 23, 2020 5:20 pm
- Location: Isle of Wight
Re: howto save webview's session
There is no such concept as a webview session.
I guess just save/restore the URL
It does not seem to have a scroll property so i guess javascript needs to be used to save/restore scroll position.
I guess just save/restore the URL
It does not seem to have a scroll property so i guess javascript needs to be used to save/restore scroll position.
Re: howto save webview's session
... e.g. in Firefox there's an option to reload the previous session at start, means the session is restored including cookies, logins etc. 

-
- Legend
- Posts: 2089
- Joined: Thu Jul 23, 2020 5:20 pm
- Location: Isle of Wight
Re: howto save webview's session
Yes i know what a web "session" means.
it's a browser thing though. the saving/restoring of it in firefox would be programmed by the firefox developers.
Webview is not a fully featured web browser. it's just a component you can use to make your own browser.
So you will have to experiment with saving/restoring what data you can.
.URL
.Cookies
.Settings
etc.
Logins might be a bit trickier but maybe not impossible to auto-re-enter login data when a page loads.

it's a browser thing though. the saving/restoring of it in firefox would be programmed by the firefox developers.
Webview is not a fully featured web browser. it's just a component you can use to make your own browser.
So you will have to experiment with saving/restoring what data you can.
.URL
.Cookies
.Settings
etc.
Logins might be a bit trickier but maybe not impossible to auto-re-enter login data when a page loads.