Download the PHP package genai/session without Composer
On this page you can find all versions of the php package genai/session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download genai/session
More information about genai/session
Files in genai/session
Download genai/session
More information about genai/session
Files in genai/session
Vendor genai
Package session
Short Description Session component with pluggable storage: native files (default), a project file dir (cache/session), or a database (PDO). A small Session API over native PHP sessions; a SessionStore save-handler decides where the data lives. Driver chosen from the [session] config group. PHP 5.3-safe runtime.
License Apache-2.0
Package session
Short Description Session component with pluggable storage: native files (default), a project file dir (cache/session), or a database (PDO). A small Session API over native PHP sessions; a SessionStore save-handler decides where the data lives. Driver chosen from the [session] config group. PHP 5.3-safe runtime.
License Apache-2.0
Please rate this library. Is it a good library?
Informations about the package session
genai/session
A session component with pluggable storage. A small Session API over native
PHP sessions; a SessionStore save-handler decides where the data lives:
| driver | store | use it for |
|---|---|---|
default |
native files | single server, simplest |
file |
FileStore |
project-local files (cache/session/) |
database |
PdoStore |
multiple servers (shared sessions table) |
The cookie, session id, and GC stay native — only the read/write target changes.
API
Starts lazily on first use, so responses that never touch the session set no cookie.
Config ([session] group, optional)
Wiring (one bean)
The factory picks the store from config; the app decides whether it has a PDO to pass:
Then inject GenAI\Session\Session anywhere and drop manual session_start().
Notes
SessionPropertyauto-registers (the package declaresextra.genai.scan); justrequire genai/session.- PHP 5.3 has no
SessionHandlerInterface, so this uses the 6-callback save-handler form plus asession_write_closeshutdown hook (so custom stores flush before objects are destroyed). - SameSite isn't set on the cookie (needs PHP 7.3+); httponly is always on, secure is auto on HTTPS.
databaseneedsext-pdo. The table is created on first use;UPDATE-then-INSERTkeeps it SQLite/MySQL-portable.
All versions of session with dependencies
PHP Build Version
Package Version
The package genai/session contains the following files
Loading the files please wait ...