Skip to main content

Module session

Module session 

Source
Expand description

The session value: what is remembered about one visitor between requests.

A Session is a plain map plus Laravel’s flash lifecycle, and knows nothing about HTTP or storage. That separation is what makes it testable without a server and swappable between the in-memory and file stores.

Structs§

Session
One visitor’s session.

Constants§

ID_BYTES
How many bytes of entropy a session id carries.

Functions§

is_valid_id
Whether a string could have been produced by Session::new_id.