PHP 클래스 Neos\Flow\Session\TransientSession

This session behaves like any other session except that it only stores the data during one request.
상속: implements Neos\Flow\Session\SessionInterface
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$data array The session data
$lastActivityTimestamp integer
$sessionId string The session Id
$started boolean If this session has been started
$tags array

공개 메소드들

메소드 설명
addTag ( string $tag ) : void Tags this session with the given tag.
canBeResumed ( ) : boolean Returns TRUE if there is a session that can be resumed. FALSE otherwise
close ( ) : void Closes the session
collectGarbage ( ) : void No operation for transient session.
destroy ( string $reason = null ) : void Explicitly destroys all session data
destroyAll ( Bootstrap $bootstrap ) : void No operation for transient session.
getData ( string $key ) : mixed Returns the data associated with the given key.
getId ( ) : string Returns the current session ID.
getLastActivityTimestamp ( ) : integer Returns the unix time stamp marking the last point in time this session has been in use.
getTags ( ) : array Returns the tags this session has been tagged with.
hasKey ( string $key ) : boolean Returns TRUE if $key is available.
isStarted ( ) : boolean Tells if the session has been started already.
putData ( string $key, object $data ) : void Stores the given data under the given key in the session
removeTag ( string $tag ) : void Removes the specified tag from this session.
renewId ( ) : string Generates and propagates a new session ID and transfers all existing data to the new session.
resume ( ) : void Resumes an existing session, if any.
start ( ) : void Starts the session, if it has not been already started
touch ( ) : void Updates the last activity time to "now".

메소드 상세

addTag() 공개 메소드

Note that third-party libraries might also tag your session. Therefore it is recommended to use namespaced tags such as "Acme-Demo-MySpecialTag".
public addTag ( string $tag ) : void
$tag string The tag – must match be a valid cache frontend tag
리턴 void

canBeResumed() 공개 메소드

Returns TRUE if there is a session that can be resumed. FALSE otherwise
public canBeResumed ( ) : boolean
리턴 boolean

close() 공개 메소드

Closes the session
public close ( ) : void
리턴 void

collectGarbage() 공개 메소드

No operation for transient session.
public collectGarbage ( ) : void
리턴 void

destroy() 공개 메소드

Explicitly destroys all session data
public destroy ( string $reason = null ) : void
$reason string A reason for destroying the session – used by the LoggingAspect
리턴 void

destroyAll() 공개 정적인 메소드

No operation for transient session.
public static destroyAll ( Bootstrap $bootstrap ) : void
$bootstrap Neos\Flow\Core\Bootstrap
리턴 void

getData() 공개 메소드

Returns the data associated with the given key.
public getData ( string $key ) : mixed
$key string An identifier for the content stored in the session.
리턴 mixed The data associated with the given key or NULL

getId() 공개 메소드

Returns the current session ID.
public getId ( ) : string
리턴 string The current session ID

getLastActivityTimestamp() 공개 메소드

Returns the unix time stamp marking the last point in time this session has been in use.
public getLastActivityTimestamp ( ) : integer
리턴 integer unix timestamp

getTags() 공개 메소드

Returns the tags this session has been tagged with.
public getTags ( ) : array
리턴 array The tags or an empty array if there aren't any

hasKey() 공개 메소드

Returns TRUE if $key is available.
public hasKey ( string $key ) : boolean
$key string
리턴 boolean

isStarted() 공개 메소드

Tells if the session has been started already.
public isStarted ( ) : boolean
리턴 boolean

putData() 공개 메소드

Stores the given data under the given key in the session
public putData ( string $key, object $data ) : void
$key string The key under which the data should be stored
$data object The data to be stored
리턴 void

removeTag() 공개 메소드

Removes the specified tag from this session.
public removeTag ( string $tag ) : void
$tag string The tag – must match be a valid cache frontend tag
리턴 void

renewId() 공개 메소드

Generates and propagates a new session ID and transfers all existing data to the new session.
public renewId ( ) : string
리턴 string The new session ID

resume() 공개 메소드

Resumes an existing session, if any.
public resume ( ) : void
리턴 void

start() 공개 메소드

Starts the session, if it has not been already started
public start ( ) : void
리턴 void

touch() 공개 메소드

Updates the last activity time to "now".
public touch ( ) : void
리턴 void

프로퍼티 상세

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

The session data
protected array $data
리턴 array

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

protected int $lastActivityTimestamp
리턴 integer

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

The session Id
protected string $sessionId
리턴 string

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

If this session has been started
protected bool $started
리턴 boolean

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

protected array $tags
리턴 array