SilverStripe\HybridSessions\Store\DatabaseStore
Synopsis
class DatabaseStore
extends BaseStore
{
- // Inherited members from BaseStore
- protected $key;
- // methods
- protected bool isDatabaseReady()
- public void open()
- public void close()
- public void read()
- public void write()
- public void destroy()
- public void gc()
- public static string binaryDataJsonEncode()
- public static void binaryDataJsonDecode()
- // Inherited methods from BaseStore
- public void setKey()
- protected string getKey()
- protected int getLifetime()
- protected int getNow()
Hierarchy
Members
protected
- $key
—
string
Session secret key
Methods
protected
- isDatabaseReady() — Determine if the DB is ready to use.
public
- binaryDataJsonDecode() — Decode ASCII string into original binary data (a php string)
- binaryDataJsonEncode() — Encode binary data into ASCII string (a subset of UTF-8)
- close()
- destroy()
- gc()
- open()
- read()
- 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