Friday, 25 April 2014

Deleting cookies in IE9

Pressing Ctrl+Shift+Del brings up the delete dialog in almost all browsers (I've tested IE, Firefox, and Chrome), where you can delete cookies, form data, passwords, etc.
 

Firefox, and Chrome are working just fine. However, IE just like always acts differently. It shows the message that everything is deleted, but it actually preserves many things.
 
To test it, I simply logged into a Zerk website. We have used session cookies on our website. After clearing all the cookies by pressing Ctrl+Shift+Del and I'm still logged in IE 9 browser. Guess what? In Chrome and Firefox I get redirected to login page when performing anything after cookies got deleted.
 

Solution:
There are two types of cookies: session and persistent. In our case, session cookies should be considered.
 


In IE 9 when you use Ctrl+Shift+Del option, you delete only persistent cookies. If you want to delete session one, you must hit F12 to open the Developer Tools, click Cache and Delete session cookie.

No comments:

Post a Comment