PHP Class Phalcon\Session\Adapter\Mongo

Inheritance: extends Phalcon\Session\Adapter, implements Phalcon\Session\AdapterInterface
Mostrar archivo Open project: phalcon/incubator

Protected Properties

Property Type Description
$data string Current session data

Public Methods

Method Description
__construct ( array $options = null ) Class constructor.
close ( )
destroy ( $sessionId = null )
gc ( string $maxLifetime )
open ( ) : boolean
read ( string $sessionId ) : string
write ( string $sessionId, string $sessionData ) : boolean

Protected Methods

Method Description
getCollection ( ) : MongoCollection

Method Details

__construct() public method

Class constructor.
public __construct ( array $options = null )
$options array

close() public method

public close ( )

destroy() public method

public destroy ( $sessionId = null )

gc() public method

public gc ( string $maxLifetime )
$maxLifetime string

getCollection() protected method

protected getCollection ( ) : MongoCollection
return MongoCollection

open() public method

public open ( ) : boolean
return boolean

read() public method

public read ( string $sessionId ) : string
$sessionId string
return string

write() public method

public write ( string $sessionId, string $sessionData ) : boolean
$sessionId string
$sessionData string
return boolean

Property Details

$data protected_oe property

Current session data
protected string $data
return string