get_cookies() returns the raw Cookie header of the request the session
was opened with, and parse_cookie_string() turns that header into a named
vector.
Usage
parse_cookie_string(cookie_string)
get_cookies(session = shiny::getDefaultReactiveDomain())Value
For get_cookies(), the Cookie header as a single string, or
NULL when the request carried none. For parse_cookie_string(), a named
character vector of the cookies it holds, or "" when given NULL. Index
it with single brackets: a visitor arriving without a cookie gives nothing
to index into, and [[ errors where [ returns NA.
See also
set_cookie() to set one from a response handler, and
vignette("cookies") for carrying a session across pages.
