Welcome Guest Search | Active Topics | Sign In | Register

Clearing cookies before run? Options
serializer
Posted: Monday, April 13, 2020 9:17:21 AM
Rank: Advanced Member
Groups: Member

Joined: 5/9/2016
Posts: 84
I am automating logon to a website. Even though I create a new WebView it seems like cookies are stored and login window is not visible. How can I clear all cookies and cookies for a specific website before running?
eo_support
Posted: Monday, April 13, 2020 11:17:19 AM
Rank: Administration
Groups: Administration

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

You can call this method before creating any WebView:

https://www.essentialobjects.com/doc/eo.webengine.engine.cleanupcachefolders_overloads.aspx

This will clear the entire cache folder. Alternatively, you can also use this method:

https://www.essentialobjects.com/doc/eo.webengine.cookiemanager.deletecookies.aspx

This method can be called while WebViews are running, but it is asynchronous so the result may not reflect right away.

Thanks!
fecinfo
Posted: Monday, April 13, 2020 11:29:08 AM
Rank: Newbie
Groups: Member

Joined: 4/13/2020
Posts: 1
serializer wrote:
I am automating logon to a website. Even though I create a new WebView it seems like cookies are stored and login window is not visible. How can I clear all cookies and cookies for a specific website before running?


I found this. Part of the EO.Webengine dll.

Wv.Engine.CookieManager.DeleteCookies(Nothing, Nothing)

Not sure about a specific website.


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.