Learn R Programming

cognitoR (version 1.0.5)

cookie_server: Cookie Shiny Module Server

Description

This server module returns a list with methods to interact with cookie created via JS. You have:

Usage

cookie_server(input, output, session, cookie_name = "user", cookie_expire = 7)

Value

list of reactive element and function to manage cookies

Arguments

input

shiny input

output

shiny output

session

shiny session

cookie_name

character - Name of cookie to create

cookie_expire

numeric - Expiration timeof cookie

Author

Pablo Pagnone

Details

  • 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

Examples

Run this code
cookie_server(NULL,NULL,NULL)

Run the code above in your browser using DataLab