HybridSession
class HybridSession extends BaseStore (View source)
Traits
Provides extensions to this object to integrate it with standard config API methods.
Properties
protected | string | $key | Session secret key |
from BaseStore |
protected | array | $handlers | List of session handlers |
|
protected static | bool | $enabled | True if this session store has been initialised |
Methods
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
Gets the uninherited value for the given config option
Details
static Config_ForClass
config()
Get a configuration accessor for this class. Short hand for Config::inst()->get($this->class, .....).
mixed
stat(string $name)
deprecated
deprecated
Get inherited config value
mixed
uninherited(string $name)
Gets the uninherited value for the given config option
$this
set_stat(string $name, mixed $value)
deprecated
deprecated
Update the config value for a given property
setKey(string $key)
No description
protected string
getKey()
Get the session secret key
protected int
getLifetime()
Get lifetime in number of seconds
protected int
getNow()
Gets the current unix timestamp
$this
setHandlers($handlers)
No description
SessionHandlerInterface[]
getHandlers()
No description
bool
open(string $save_path, string $name)
No description
bool
close()
No description
string
read(string $session_id)
No description
write($session_id, $session_data)
No description
destroy($session_id)
No description
gc($maxlifetime)
No description
static
init(string $key = null)
Register the session handler as the default
static
is_enabled()
No description