delete session and persistent cookies

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
jdleejr
Newbie
Posts: 2
Joined: Wed Sep 30, 2015 9:04 pm

delete session and persistent cookies

Post by jdleejr » Fri Oct 02, 2015 1:56 am

I am trying to find a function that works like FireFox where it deletes the session and persistent cookies (for IE - the "Delete Browsing History" is inadequate) Specifically persistent cookies, for this demo, that is the reason this example is was chosen. "Other" imacro tools have a command called "CLEAR" but as much as I go through the index, and search this forum, I have not located a command like that... can anyone help me please?

I am competing to show the speed and elegance of this versus other tools and what we should adopt... so far, imo, this is more versatile but I have this speedbump.

Code: Select all

IECreate>IE_REF
IENavigate>IE_REF,https://usrowingfanschoice.secure-platform.com/a/gallery/1/vote/5,res
IEWaitDocumentComplete>IE_REF,res
IEClickTag>IE_REF,,,INPUT,Value,Confirm Vote,result
Wait>1
IEQuit>IE[0],ie_res
Versus my vocal competitor that is already done...

Code: Select all

VERSION BUILD=10.4.28.1074
CLEAR
URL GOTO=https://usrowingfanschoice.secure-platform.com/a/gallery/1
TAG POS=3 TYPE=A ATTR=TXT:Vote<SP>for<SP>this<SP>Application
TAG POS=1 TYPE=INPUT:SUBMIT ATTR=CLASS:confirmVote<SP>button
TAG POS=1 TYPE=INPUT:BUTTON ATTR=CLASS:button
I only have until tomorrow to submit the MacroScheduler solution.

1) It would also be better if I didn't have to open and close IE each time if put in a loop.
IF IE_REF, clear current window, execute in current window.

2) My alternative to CLEAR is to Open a third-party app (ie. CCleaner) run it, cleanup windows.
I know that if I have to do that I will loose this comparison so I haven't even tried.

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Re: delete session and persistent cookies

Post by Marcus Tettmar » Fri Oct 02, 2015 10:45 am

Does this help:
viewtopic.php?t=4060
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

jdleejr
Newbie
Posts: 2
Joined: Wed Sep 30, 2015 9:04 pm

Re: delete session and persistent cookies

Post by jdleejr » Tue Oct 06, 2015 10:54 pm

I figured I would come back to at least show what I submitted...
It works well and is clean but it was like pulling teeth to figure out the commands initially.
This might help someone in the future...

Code: Select all

//***********************************************
//*  Purpose, demonstrate loop in IE     *
//*     SRT>Clear_History = Process 1     *
//*     SRT>Clear_Cookies = Process 2    *
//*     k=process loop=how many cycles *
//***********************************************

//Initial Browser Cleanup
Run Program>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 1
Run Program>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2

//Process Loop
Let>k=0
Repeat>k
   Let>k=k+1
   IECreate>IE_REF
   IENavigate>IE_REF,https://usrowingfanschoice.secure-platform.com/a/gallery/1/vote/5,res
   IEWaitDocumentComplete>IE_REF,res
   IEClickTag>IE_REF,,,INPUT,Value,Confirm Vote,result
   IEQuit>IE_REF,ie_res
   Run Program>RunDll32.exe InetCpl.cpl,ClearMyTracksByProcess 2
Until>k,3

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts