IE Session cookie helper
Whenever we browse a website it may create some cookies on your machine. There are two types of cookies
Persistent Cookies
These cookies are on cached on your machine disk. These cookies remain on your pc until deleted or expired. Websites based on just these cookies can be tested again and again in a browser. If you browse on to http://www.sqaforums.com/login.php?Cat=0 and login using your id and browse the same link again then you will see that you are no more shown the user id and password box. Now delete the cookies and browse the link again and you will see the user id and password text box. Since the site used just the persistent cookies we were able to re-login in the same browser just by deleting the cookies.
Non-Persistent cookies
Also known as session cookies these remain only in the browser session and are automatically deleted when the browser is closed. Websites based on these cookies cannot be tested again and again in the same browser. If you browse to www.gmail.com and login to your account then delete cookies and try to login again then you will notice that there is no way to get the login box without logging account from your account. Since gmail created some session cookies for storing the login information it is not possible to re-login in the same browser without a logout.
Session cookies can only deleted by the process which created it. Since IE does not provide any function for deleting the session of a specific browser it really looked impossible to do this task. But when testing a website for a iterations in the order of 1000s it gets problematic for closing the browser and launching a new one for each iteration. It could sometimes lead to performance degrade for that pc and sometimes may hang the pc as well. The only workaround was to make such a code which can be executed with in the process boundary of the destination IE browser.
This technique is called Code/DLL Injection. I created a DLL in VC++ containing the code for deleting session cookies. Now to delete the cookies we execute this inside the IE process for which we use a Injector exe in VB6 which injects the DLL inside IE, clears cookies and the unloads the DLL. Well it took me nearly 10 frustrating and enjoying days to make something which does not crash IE and work fine also. But the end product was something that is nowhere available on net currently
IE Helper setup (3.5 MiB, 4,528 hits)
You need to be a registered user to download this file.
Have questions related to this article? Want to request a new article? Use our forums to post your questions
Viewed 8,049 times

(2)

Tags used -