This repository has been archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
Aerospike Session Handler
Mira Dytko edited this page Jan 8, 2022
·
1 revision
Use the Aerospike PHP client custom session handler to store user sessions.
- The application must specify the set and namespace to use as the container for user sessions.
- The session ID is the primary key of the record that contains the session.
- The key-value pairs in the
$\_SESSION
object are stored in the matching record. - The value of
session.gc_maxlifetime
is the record time-to-live (TTL or expiration). -
session.save_handler string
— Must be set to aerospike to enable sessions support. -
session.save_path string
— A string formatted as*ns*|*set*|*addr*:*port*\[,*addr*:*port*\[,...\]\]
(for example,test|sess|127.0.0.1:3000
). As with the$config
of the constructor, only the host info of one cluster node is required.
PHP Client