Session Lifecycle
Creating Sessions
session = store.createLoading Sessions
store.load_from(request.cookies)Accessing Session Data
store.current_session # Current session object (your typed class)
store[session_id] # Fetch by ID (raises SessionNotFoundException)
store[session_id]? # Fetch by ID (returns nil)
store.session_id # Current session's ID
store.valid? # Current session not expired?Saving Sessions
Regenerating Session ID
Deleting Sessions
Expiration
Callbacks
Callback
Signature
Triggered When
See Also
Last updated
Was this helpful?