Welcome Guest Search | Active Topics | Sign In | Register

EO Browser - detect which cookies are session vs persisted cookies Options
BakkerElkhuizen Group BV
Posted: Wednesday, October 20, 2021 3:37:34 AM
Rank: Newbie
Groups: Member

Joined: 3/7/2018
Posts: 6
Hi All,

It looks like session cookies are not always cleaned up when we want to. So we would like to add some code to delete all session cookies. We use the following code to get the cookies:

WebView webView = new WebView();
var cookies = webView.Engine.CookieManager.GetCookies();

//Loop through the cookies to check if which cookies must be deleted.
for (int i = 0; i < cookies.Count; i++)
{
Cookie cookie = cookies.Get(i);


Is there a way to detect which cookies are persisted cookies vs session cookies, so we can delete the session cookies only?

Thanks in advance.

Best regards,
Bart Vries
eo_support
Posted: Thursday, October 21, 2021 10:22:44 AM
Rank: Administration
Groups: Administration

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

Session cookie does not have an expiration date, where as persistent cookies do.

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.