Remove Cookie

From UBot Studio
Revision as of 21:48, 16 October 2015 by LillyT (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.


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.


Removecookie1.gif



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.

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox