PHP Интерфейс ManaPHP\Http\SessionInterface

Показать файл Открыть проект

Открытые методы

Метод Описание
clean ( ) : void
destroy ( ) : void Destroys the active session
get ( string $name = null, mixed $defaultValue = null ) : mixed Gets a session variable from an application context
getSessionId ( ) : string
has ( string $name ) : boolean Check whether a session variable is set in an application context
remove ( string $name ) Removes a session variable from an application context
set ( string $name, mixed $value ) Sets a session variable in an application context

Описание методов

clean() публичный метод

public clean ( ) : void
Результат void

destroy() публичный метод

Destroys the active session
public destroy ( ) : void
Результат void

get() публичный метод

Gets a session variable from an application context
public get ( string $name = null, mixed $defaultValue = null ) : mixed
$name string
$defaultValue mixed
Результат mixed

getSessionId() публичный метод

public getSessionId ( ) : string
Результат string

has() публичный метод

Check whether a session variable is set in an application context
public has ( string $name ) : boolean
$name string
Результат boolean

remove() публичный метод

Removes a session variable from an application context
public remove ( string $name )
$name string

set() публичный метод

Sets a session variable in an application context
public set ( string $name, mixed $value )
$name string
$value mixed