PHP Interface ManaPHP\Http\SessionInterface

Show file Open project: manaphp/manaphp

Public Methods

Method 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 method

public clean ( ) : void
return void

destroy() public method

Destroys the active session
public destroy ( ) : void
return void

get() public method

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

getSessionId() public method

public getSessionId ( ) : string
return string

has() public method

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

remove() public method

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

set() public method

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