SilverStripe\HybridSessions\HybridSession
Synopsis
class HybridSession
extends BaseStore
{
- // Inherited members from BaseStore
- protected $key;
- // methods
- public $this setHandlers()
- public $this setKey()
- public array getHandlers()
- public bool open()
- public bool close()
- public string read()
- public void write()
- public void destroy()
- public void gc()
- public static void init()
- public static void is_enabled()
- // Inherited methods from BaseStore
- public void setKey()
- protected string getKey()
- protected int getLifetime()
- protected int getNow()
Hierarchy
Members
protected
- $enabled
—
SilverStripe\HybridSessions\bool
True if this session store has been initialised - $handlers
—
array
List of session handlers - $key
—
string
Session secret key
Methods
public
- close()
- destroy()
- gc()
- getHandlers()
- init() — Register the session handler as the default
- is_enabled()
- open()
- read()
- setHandlers()
- setKey()
- write()
Inherited from SilverStripe\HybridSessions\Store\BaseStore
protected
- getKey() — Get the session secret key
- getLifetime() — Get lifetime in number of seconds
- getNow() — Gets the current unix timestamp
public
- setKey() — Assign a new session secret key