get_session_id.RdThis function retrieves the session ID from the session's cookies. If the session ID does not exist, it generates a new session ID using the session token and sets it. It also ensures the session directory is created in the specified temporary directory.
get_session_id(session, temp_dir)A character string representing the session ID.