JackRevers Posted September 13, 2007 Share Posted September 13, 2007 Hi, 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. expandcollapse popup#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 $oIE.navigate("www.autoit.com") ; Waiting for user to close the window While 1 $msg = GUIGetMsg() Select Case $msg = $GUI_EVENT_CLOSE ExitLoop Case $msg = $GUI_Button_Home $oIE.navigate("www.autoit.com") Case $msg = $GUI_Button_Back $oIE.GoBack Case $msg = $GUI_Button_Forward ;$oIE.GoForward $oIE.GoForward Case $msg = $GUI_Button_Stop exit EndSelect Wend GUIDelete () Exit 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. Thanks. -Jack Link to comment Share on other sites More sharing options...
JackRevers Posted September 13, 2007 Author Share Posted September 13, 2007 No one has an idea on this? Link to comment Share on other sites More sharing options...
JackRevers Posted September 13, 2007 Author Share Posted September 13, 2007 No one has an idea on this?Never mind I figured it out. Link to comment Share on other sites More sharing options...
mrz1818 Posted January 16, 2008 Share Posted January 16, 2008 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??! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now