SilverStripe\HybridSessions\Tests\Store\TestCookieStore
Synopsis
class TestCookieStore
extends CookieStore
implements
TestOnly
{
- // members
- public static $override_headers_sent = NULL;
- // Inherited members from CookieStore
- protected HybridSessionStore_Crypto $crypto;
- protected $cookie;
- protected $currentCookieData;
- // Inherited members from BaseStore
- protected $key;
- // methods
- protected void canWrite()
- // Inherited methods from CookieStore
- public void open()
- public void close()
- protected HybridSessionStore_Crypto getCrypto()
- public void read()
- protected bool canWrite()
- public void write()
- public void destroy()
- public void gc()
- // Inherited methods from BaseStore
- public void setKey()
- protected string getKey()
- protected int getLifetime()
- protected int getNow()
Hierarchy
Members
protected
- $crypto
—
SilverStripe\HybridSessions\Store\HybridSessionStore_Crypto
Encryption service - $currentCookieData
—
string
Known unmodified value of this cookie. If the cookie backend has been read into the application, then the backend is unable to verify the modification state of this value internally within the system, so this will be left null unless written back. - $key
—
string
Session secret key
public
- $override_headers_sent
—
string
Override value of 'headers_sent' but only if running tests.
Methods
protected
Inherited from SilverStripe\HybridSessions\Store\CookieStore
protected
- canWrite() — Determine if the session could be verifably written to cookie storage
- getCrypto() — Get the cryptography store for the specified session
public
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