This is a migrated thread and some comments may be shown as answers.
Unable to delete session cookies
1 Answer 34 Views
This is a migrated thread and some comments may be shown as answers.
clee
Top achievements
Rank 1
clee asked on 14 Aug 2012, 05:03 PM
Hi, 

We're currently trying to speed up our tests by not launching a new browser with each test we run. Instead, we're keeping the active browser open and deleting the cache and cookies to restore the browser to its initial state (e.g. making sure the user is no longer logged in).  

So far we've tried calling Cookies.DeleteCookies() as well as ClearCache(BrowserCacheType.Cookies), but neither seem to be deleting the session cookies in IE8.  The current behavior I'm seeing is that after calling these methods and re-navigating to our site, the user still remains logged in.  

Does anyone know the solution to this? Thanks.

1 Answer, 1 is accepted

Sort by
0
Byron
Telerik team
answered on 17 Aug 2012, 08:14 PM
Hello Claire,

I recommend combining the clear cookies step with a ClearCache(History) step, since the browser could be reloading cached content. If this does not resolve your issue, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening.

Regards,
Byron
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
Asked by
clee
Top achievements
Rank 1
Answers by
Byron
Telerik team
Share this question
or