In order to use the
DALMP\Sessions you need to create an instance of it,
while creating the instance you define the backend that will store the sessions
and the hash algorithm used to create them.
__construct($handler = false, $algo = 'sha256')
|$handler:||If false uses SQLite, otherwise argument must be an instance of SessionHandlerInterface.|
|$algo:||Allows you to specify the hash algorithm used to generate the session IDs - default sha256.|
The current backends are:
The construct for each cache backend maybe be different and it is used for defining specific options like the host, port, path, etc.
If set, the value is used as an argument for the session.gc_maxlifetime with specifies the number of seconds after which data will be seen as ‘garbage’ and potentially cleaned up.
The global reference value that will be checked/used when handling sessions, every session will contain this value.
A unique key that will be used to create the store the session on Memcache/Redis backends, this is useful when working in shared hosted enviroments, basically to avoid collisions.
Thanks Navicat for supporting Open Source projects.
A great amount of time has been spent creating, crafting and maintaining this software, please consider donating.
Donating helps ensure continued support, development and availability.
comments powered by Disqus