This function sets a session ID in the browser's cookies and creates a session directory in the specified temporary directory. It uses the `shinyjs` package to run JavaScript code that sets the cookie.

set_session_id(session_id, temp_dir)

Arguments

session_id

Character. Unique identifier for the session.

temp_dir

Character. Path to the temporary directory where the session directory will be created.

Value

NULL. The function is called for its side effect of setting a cookie and creating a directory.