PHP 클래스 Cartalyst\Sentinel\Sessions\NativeSession

상속: implements Cartalyst\Sentinel\Sessions\SessionInterface
파일 보기 프로젝트 열기: cartalyst/sentinel 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$key string The session key.

공개 메소드들

메소드 설명
__construct ( string $key = null ) : void Creates a new native session driver for Sentinel.
__destruct ( ) : void Called upon destruction of the native session handler.
forget ( ) {@inheritDoc}
get ( ) {@inheritDoc}
put ( $value ) {@inheritDoc}

보호된 메소드들

메소드 설명
forgetSession ( ) : void Forgets the Sentinel session from the global $_SESSION.
getSession ( ) : mixed. Unserializes a value from the session and returns it.
setSession ( mixed $value ) : void Interacts with the $_SESSION global to set a property on it.
startSession ( ) : void Starts the session if it does not exist.
writeSession ( ) : void Writes the session.

메소드 상세

__construct() 공개 메소드

Creates a new native session driver for Sentinel.
public __construct ( string $key = null ) : void
$key string
리턴 void

__destruct() 공개 메소드

Called upon destruction of the native session handler.
public __destruct ( ) : void
리턴 void

forget() 공개 메소드

{@inheritDoc}
public forget ( )

forgetSession() 보호된 메소드

Forgets the Sentinel session from the global $_SESSION.
protected forgetSession ( ) : void
리턴 void

get() 공개 메소드

{@inheritDoc}
public get ( )

getSession() 보호된 메소드

Unserializes a value from the session and returns it.
protected getSession ( ) : mixed.
리턴 mixed.

put() 공개 메소드

{@inheritDoc}
public put ( $value )

setSession() 보호된 메소드

The property is serialized initially.
protected setSession ( mixed $value ) : void
$value mixed
리턴 void

startSession() 보호된 메소드

Starts the session if it does not exist.
protected startSession ( ) : void
리턴 void

writeSession() 보호된 메소드

Writes the session.
protected writeSession ( ) : void
리턴 void

프로퍼티 상세

$key 보호되어 있는 프로퍼티

The session key.
protected string $key
리턴 string