Remove Cookie
From UBot Studio
(Difference between revisions)
Line 22: | Line 22: | ||
− | [[File:removecookie1. | + | [[File:removecookie1.gif]] |
Latest revision as of 21:48, 16 October 2015
This command is a Cookie Control command in the UBot Extended Library found in the bot bank. This command will remove the specified cookie.
Name: Refers to the name of the cookie being removed.
[edit] Example
navigate("http://www.html-kit.com/tools/cookietester/","Wait") set cookie("My_cookie",1234) wait(5) remove cookie("My_cookie") click(<value="Refresh">,"Left Click","No")
For this example, the website allows the setting of cookies through the web page.
Clicking the Set Test Cookie button on the web page sets a random cookie. Using the set cookie command, a cookie is set for removal.
Once the cookie is set, the remove cookie command is run to remove the cookie. Notice that the cookie is no longer set when the page is refreshed.