Set a Session ID and Create Session Directory
set_session_id.RdThis 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.