PHP Interface ManaPHP\Http\SessionInterface

Afficher le fichier Open project: manaphp/manaphp

Méthodes publiques

Méthode Description
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

Method Details

clean() public méthode

public clean ( ) : void
Résultat void

destroy() public méthode

Destroys the active session
public destroy ( ) : void
Résultat void

get() public méthode

Gets a session variable from an application context
public get ( string $name = null, mixed $defaultValue = null ) : mixed
$name string
$defaultValue mixed
Résultat mixed

getSessionId() public méthode

public getSessionId ( ) : string
Résultat string

has() public méthode

Check whether a session variable is set in an application context
public has ( string $name ) : boolean
$name string
Résultat boolean

remove() public méthode

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

set() public méthode

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