PHP Class Cartalyst\Sentinel\Sessions\NativeSession

Inheritance: implements Cartalyst\Sentinel\Sessions\SessionInterface
Afficher le fichier Open project: cartalyst/sentinel Class Usage Examples

Protected Properties

Свойство Type Description
$key string The session key.

Méthodes publiques

Méthode Description
__construct ( string $key = null ) : void Creates a new native session driver for Sentinel.
__destruct ( ) : void Called upon destruction of the native session handler.
forget ( ) {@inheritDoc}
get ( ) {@inheritDoc}
put ( $value ) {@inheritDoc}

Méthodes protégées

Méthode Description
forgetSession ( ) : void Forgets the Sentinel session from the global $_SESSION.
getSession ( ) : mixed. Unserializes a value from the session and returns it.
setSession ( mixed $value ) : void Interacts with the $_SESSION global to set a property on it.
startSession ( ) : void Starts the session if it does not exist.
writeSession ( ) : void Writes the session.

Method Details

__construct() public méthode

Creates a new native session driver for Sentinel.
public __construct ( string $key = null ) : void
$key string
Résultat void

__destruct() public méthode

Called upon destruction of the native session handler.
public __destruct ( ) : void
Résultat void

forget() public méthode

{@inheritDoc}
public forget ( )

forgetSession() protected méthode

Forgets the Sentinel session from the global $_SESSION.
protected forgetSession ( ) : void
Résultat void

get() public méthode

{@inheritDoc}
public get ( )

getSession() protected méthode

Unserializes a value from the session and returns it.
protected getSession ( ) : mixed.
Résultat mixed.

put() public méthode

{@inheritDoc}
public put ( $value )

setSession() protected méthode

The property is serialized initially.
protected setSession ( mixed $value ) : void
$value mixed
Résultat void

startSession() protected méthode

Starts the session if it does not exist.
protected startSession ( ) : void
Résultat void

writeSession() protected méthode

Writes the session.
protected writeSession ( ) : void
Résultat void

Property Details

$key protected_oe property

The session key.
protected string $key
Résultat string