Jump to content
Sign in to follow this  

Deleteing Session Cookies

Recommended Posts



I hate to bother everyone (and I usually don't post cause I search the forums to find answers) but I am really stuck right now. I am wondering how I can delete a session cookie while I have Shell.Explorer.2 running.

Here is the code that I will be working with. I found it while searching the forums. Someone posted that it is in one of the helpfiles somewhere.

#include <GUIConstants.au3>
; Simple example: Embedding an Internet Explorer Object inside an AutoIt GUI
; The full example is available in the test\ActiveX directory (TestXInternet.au3)
; See also: http://msdn.microsoft.com/workshop/browser...netexplorer.asp

$oIE = ObjCreate("Shell.Explorer.2")

; Create a simple GUI for our output
GUICreate ( "Embedded Web control Test", 640, 580,(@DesktopWidth-640)/2, (@DesktopHeight-580)/2 , $WS_OVERLAPPEDWINDOW + $WS_VISIBLE + $WS_CLIPSIBLINGS)
$GUIActiveX      = GUICtrlCreateObj   ( $oIE,     10, 40 , 600 , 360 )
$GUI_Button_Back    = GuiCtrlCreateButton   ("Back",     10, 420, 100,  30)
$GUI_Button_Forward = GuiCtrlCreateButton   ("Forward", 120, 420, 100,  30)
$GUI_Button_Home    = GuiCtrlCreateButton   ("Home",    230, 420, 100,  30)
$GUI_Button_Stop    = GuiCtrlCreateButton   ("Stop",    330, 420, 100,  30)

GUISetState ()    ;Show GUI


; Waiting for user to close the window
While 1
    $msg = GUIGetMsg()
        Case $msg = $GUI_EVENT_CLOSE
        Case $msg = $GUI_Button_Home
        Case $msg = $GUI_Button_Back
        Case $msg = $GUI_Button_Forward
        Case $msg = $GUI_Button_Stop

GUIDelete ()


I'm creating a program to check for valid homepages for some servers. There are 10 POD's and each POD has 10 blade servers. I can hit a specific POD but the server that I hit is random. I can go to the POD and send a command to see what server it is. But if I go to the POD again and send the command to view the server number I will get the same server number as last time because of the session cookie. So I have to close the browser and reopen it to clear the session cookie then I can hit the POD again and check for the server number again.

I don't like having to close the browser every time so I was wondering if there is a command to just clear the session cookie.



Share this post

Link to post
Share on other sites

No one has an idea on this?

Never mind I figured it out.

Share this post

Link to post
Share on other sites

Never mind I figured it out.

Im still having an issue like you.

I have a site, and I log in a bunch of times and soon i get a "400 - Bad Request - Headers too large..."

I know its not perm cookies b/c I kill those, and I try killing the GUI and re-building it, yet the session cookies I think are still messing it up...

Any ideas??!

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.