howto save webview's session

For questions about Gambas web tools.
Post Reply
paco
Newbie
Posts: 18
Joined: Fri Feb 11, 2022 5:42 pm

howto save webview's session

Post by paco »

hi, is there a sample how to save and restore a webview's session? thanks!
BruceSteers
Legend
Posts: 2089
Joined: Thu Jul 23, 2020 5:20 pm
Location: Isle of Wight

Re: howto save webview's session

Post by BruceSteers »

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.
paco
Newbie
Posts: 18
Joined: Fri Feb 11, 2022 5:42 pm

Re: howto save webview's session

Post by paco »

... e.g. in Firefox there's an option to reload the previous session at start, means the session is restored including cookies, logins etc. ;)
BruceSteers
Legend
Posts: 2089
Joined: Thu Jul 23, 2020 5:20 pm
Location: Isle of Wight

Re: howto save webview's session

Post by BruceSteers »

Yes i know what a web "session" means. :roll:
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.
Post Reply