powered by
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)
list of reactive element and function to manage cookies
shiny input
shiny output
shiny session
character - Name of cookie to create
numeric - Expiration timeof cookie
Pablo Pagnone
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
cookie_server(NULL,NULL,NULL)
Run the code above in your browser using DataLab