Welcome Guest Search | Active Topics | Sign In | Register

Clearing cache and cookies Options
yvesm
Posted: Thursday, January 29, 2015 11:54:50 AM
Rank: Advanced Member
Groups: Member

Joined: 12/1/2014
Posts: 57
I was hoping to be able to delete the the folder I set as Runtime.CachePath after I dispose of all the WebViews but I still get an error that files are in use. Is there another way to accomplish that?

I read the following on a past post - can this be made optional? Thank you.

"If you do not set EO.WebBrowser.Runtime.CachePath, then all cookies are saved in memory. In previous build if you close all WebViews, then the browser engine is unloaded and all cookies information are discarded even if your application is still running. So if you do not set CachePath and close all tabs and then open another tab later, then all cookies information will be lost."
eo_support
Posted: Thursday, January 29, 2015 1:18:31 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,196
Hi,

This is not optional. In the current build if you do not set CachePath, it will still use a temp directory as CachePath. So it always recommended to use CachePath.

The CachePath folder will not be released until your application exit. For a .NET application, this means your AppDomain exits and it does not necessary mean your process exits. Thus it is possible for you to run all WebView inside a separate AppDomain and then unload that AppDomain to release the cache path.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.