SessionState

Class defining the various states of a session

final
since

2.0.0

package

Joomla Framework

Methods

__construct

Private constructor to prevent instantiation of this class

__construct() : mixed
since

2.0.0

Response

mixed

Constants

ACTIVE

State indicating the session is active.

A SessionInterface instance should be in this state once the session has started.

Value 'active'
since

2.0.0

Type(s)

string

CLOSED

State indicating the session is closed.

A SessionInterface instance should be in this state after calling the close() method.

Value 'closed'
since

2.0.0

Type(s)

string

DESTROYED

State indicating the session is destroyed.

A SessionInterface instance should be in this state after calling the destroy() method.

Value 'destroyed'
since

2.0.0

Type(s)

string

ERROR

State indicating the session is in an error state.

A SessionInterface instance should be in this state if the session cannot be validated after being started.

Value 'error'
since

2.0.0

Type(s)

string

EXPIRED

State indicating the session is expired.

A SessionInterface instance should be in this state if the session has passed the allowed lifetime. A SessionInterface instance may be in this state if validating a session token fails.

Value 'expired'
since

2.0.0

Type(s)

string

INACTIVE

State indicating the session is inactive.

A SessionInterface instance should begin in this state.

Value 'inactive'
since

2.0.0

Type(s)

string