View source: R/cookie_server.R
cookie_server | R Documentation |
This server module returns a list with methods to interact with cookie created via JS. You have:
cookie_server(input, output, session, cookie_name = "user", cookie_expire = 7)
input |
shiny input |
output |
shiny output |
session |
shiny session |
cookie_name |
character - Name of cookie to create |
cookie_expire |
numeric - Expiration timeof cookie |
getCookie - Reactive function, returns the content of cookie if exist. Else return FALSE.
setCookie - Sets the content for a cookie. (Required param: list())
rmCookie - Removes a cookie
list of reactive element and function to manage cookies
Pablo Pagnone
cookie_server(NULL,NULL,NULL)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.