- session-get key #!optional defaultprocedure
Retrieve a value from the current session.
Parameters:
- key: string - The session key to look up
- default: any - Value to return if key is not found (default: #f)
Returns: The value associated with the key, or the default value
;; Get user ID from session (let ((user-id (session-get "user-id"))) (if user-id (format "Welcome user ~A" user-id) "Please log in")) ;; Get with custom default (session-get "theme" "light") ; Returns "light" if theme not set