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
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,217
|
Hi,
Session cookie does not have an expiration date, where as persistent cookies do.
Thanks!
|