class Illuminate / Session / ArraySessionHandler
You're browsing the documentation for an upcoming version of Laravel. The documentation and features of this release are subject to change.

ArraySessionHandler

Implements

Uses

Properties

protected

$storage array

The array of stored values.

Default: []
protected

$minutes int

The number of minutes the session should be valid.

Default: null

Methods

public

__construct ( $minutes ) : void

Create a new array driven handler instance.

Parameters

  • $minutes int
public

open ( $savePath , $sessionName ) : bool

{@inheritdoc}

public

close ( ) : bool

{@inheritdoc}

public

read ( $sessionId ) : string|false

{@inheritdoc}

public

write ( $sessionId , $data ) : bool

{@inheritdoc}

public

destroy ( $sessionId ) : bool

{@inheritdoc}

public

gc ( $lifetime ) : int

{@inheritdoc}

protected

calculateExpiration ( $seconds ) : int

Get the expiration time of the session.

Parameters

  • $seconds int