remDr: An object of class "rDriver". A remote driver object see remoteDr.
name: character: The name of the cookie; may not be null or an empty string
value: character: The cookie value; may not be null.
path: character: The path the cookie is visible to. If left blank or set to null, will be set to "/".
domain: character: The domain the cookie is visible to. It should be null or the same as the domain of the current URL.
secure: logical: Whether this cookie requires a secure connection(https?). It should be null or equal to the security of the current URL.
httpOnly: logical: Whether the cookie is an httpOnly cookie.
expiry: The cookie's expiration date; may be null.
...: Additonal function arguments - Currently passes the retry argument.
Returns
invisible(remDr): An object of class "rDriver" is invisibly returned. A remote driver object see remoteDr. This allows for chaining from this function to other functions that take such an object as an argument. See examples for further details.
Examples
## Not run:# assume a server is running at default locationremDr <- remoteDr()remDr %>% go("https://www.google.com/ncr")%>% getTitle()# get the cookiesremDr %>% getCookie()# get a named cookieremDr %>% getCookie("NID")# add our own cookieremDr %>% addCookie(name ="myCookie", value ="12")# check its valueremDr %>% getCookie("myCookie")# delete our cookieremDr %>% deleteCookie("myCookie")# check its deletedremDr %>% getCookie("myCookie")# delete all cookiesremDr %>% getCookie()remDr %>% deleteAllCookies()%>% getCookie()remDr %>% deleteSession()## End(Not run)
See Also
Other cookies functions: deleteAllCookies, deleteCookie, getAllCookies, getNamedCookie