Session


Class: \Flextype\Component\Session\Session

Visibility Function
public static delete() : void
Deletes one or more session variables. Session::delete('user');
public static destroy() : void
Destroys the session. Session::destroy();
public static exists() : bool
Checks if a session variable exists. if (Session::exists('user')) { // Do something... }
public static get(\string $key) : mixed
Gets a variable that was stored in the session. echo Session::get('user');
public static getSessionId() : string
Returns the sessionID. echo Session::getSessionId();
public static set(\string $key, mixed $value) : void
Stores a variable in the session. Session::set('user', 'Awilum');
public static start() : void
Starts the session. Session::start();
Language: en, ru