W3cubDocs

/Phalcon 2

Interface Phalcon\Session\AdapterInterface

Phalcon\Session\AdapterInterface initializer

Methods

abstract public start ()

Starts session, optionally using an adapter

abstract public setOptions (array $options)

Sets session options

abstract public array getOptions ()

Get internal options

abstract public mixed get (string $index, [mixed $defaultValue])

Gets a session variable from an application context

abstract public set (string $index, string $value)

Sets a session variable in an application context

abstract public boolean has (string $index)

Check whether a session variable is set in an application context

abstract public remove (string $index)

Removes a session variable from an application context

abstract public string getId ()

Returns active session id

abstract public boolean isStarted ()

Check whether the session has been started

abstract public boolean destroy ([unknown $session_id])

Destroys the active session

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_Session_AdapterInterface.html