Jump to content
Sign in to follow this  
Jango

Disable cookie

Recommended Posts

Jango

Hello,

I use this script and it works fine:

#include <IE.au3>
Opt("WinTitleMatchMode", -2)

$oIE = _IECreate("about:blank", 0, 1)
_IEPropertySet($oIE, "addressbar", False)
_IEPropertySet($oIE, "menubar", False)
_IEPropertySet($oIE, "toolbar", False)
_IEPropertySet($oIE, "silent", True)
_IENavigate($oIE, "https://192.168.2.254:5100")

While 1
    $Title = _IEPropertyGet($oIE, "title")
    If @error Then ExitLoop
    If StringInStr($Title, "erreur de certificat") Or StringInStr($Title, "certificate error") Then
        _IELinkClickByIndex($oIE, 1)
    EndIf
    If StringInStr($Title, "user authentication") Then
        $oForm   = _IEFormGetObjByName($oIE, "user_auth_form")
        $oUser   = _IEFormElementGetObjByName ($oForm, "username")
        $oPwd   = _IEFormElementGetObjByName ($oForm, "password")
        $oDomain = _IEFormElementGetObjByName ($oForm, "domain")
        $oSubmit = _IEFormElementGetObjByName ($oForm, "submit")
        _IEFormElementSetValue($oUser, "myuser")
        _IEFormElementSetValue($oPwd, "mypassword")
        _IEFormElementSetValue($oDomain, "Active Directory")
        _IEAction($oSubmit, "click")
    EndIf
    If StringInStr($Title, "user authenticated") Then
        WinSetState("user authenticated", "", @SW_MINIMIZE)
        ExitLoop
    EndIf
    Sleep(750)
WEnd

But i noticed that IE use cookie to memorize the user, so is there a way to disable cookie just for my browser with _IESomething ??? (i don't want to change IE settings globaly)

Thx

Share this post


Link to post
Share on other sites
d4rk

delete the cookies


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
Jango

delete the cookies

It seems a good idea do you know how i know wich one to delete ? (i don't want too delete all for sure)

Share this post


Link to post
Share on other sites
d4rk

delete by its name, i think the cookies belong to a website would have be silimar to : usename@www.website.com


[quote]Don't expect for a perfect life ... Expect a least troubles ones[/quote]Contact me : ass@kiss.toWhat I Have Done :Favorites Manager Mangage your favorite's folder, that's coolPC Waker For those who want to save stickersWebScipts Supporter For those who've just started with Web and WebScriptsTemporary Looker Simple but powerful to manage your Temporary folder, you know what you downloaded[UDF] _NumberFormat() Better performance on number display[UDF] _DirGet() What a folder contain [how many (hidden,normal,...) files], with one line of code[UDF] _IsPressEs() Just like _IsPress() but for a group of keys

Share this post


Link to post
Share on other sites
GEOSoft

Disable cookies in Internet Options >>Advanced. That is a per user setting so they are disabled only when you are signed in. Or you could just delete all (or any) cookies from @UserProfileDir & "\Cookies"


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

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  

×