PHP 클래스 Neos\Flow\Session\SessionManager

상속: implements Neos\Flow\Session\SessionManagerInterface
파일 보기 프로젝트 열기: neos/flow-development-collection

보호된 프로퍼티들

프로퍼티 타입 설명
$currentSession Neos\Flow\Session\SessionInterface
$metaDataCache Neos\Cache\Frontend\VariableFrontend Meta data cache used by sessions
$remoteSessions array

공개 메소드들

메소드 설명
destroySessionsByTag ( string $tag, string $reason = '' ) : integer Destroys all sessions which are tagged with the specified tag.
getActiveSessions ( ) : array Returns all active sessions, even remote ones.
getCurrentSession ( ) : Neos\Flow\Session\SessionInterface Returns the currently active session which stores session data for the current HTTP request on this local system.
getSession ( string $sessionIdentifier ) : Neos\Flow\Session\SessionInterface Returns the specified session. If no session with the given identifier exists, NULL is returned.
getSessionsByTag ( string $tag ) : array Returns all sessions which are tagged by the specified tag.

메소드 상세

destroySessionsByTag() 공개 메소드

Destroys all sessions which are tagged with the specified tag.
public destroySessionsByTag ( string $tag, string $reason = '' ) : integer
$tag string A valid Cache Frontend tag
$reason string A reason to mention in log output for why the sessions have been destroyed. For example: "The corresponding account was deleted"
리턴 integer Number of sessions which have been destroyed

getActiveSessions() 공개 메소드

Returns all active sessions, even remote ones.
public getActiveSessions ( ) : array
리턴 array

getCurrentSession() 공개 메소드

Returns the currently active session which stores session data for the current HTTP request on this local system.
public getCurrentSession ( ) : Neos\Flow\Session\SessionInterface
리턴 Neos\Flow\Session\SessionInterface

getSession() 공개 메소드

Returns the specified session. If no session with the given identifier exists, NULL is returned.
public getSession ( string $sessionIdentifier ) : Neos\Flow\Session\SessionInterface
$sessionIdentifier string The session identifier
리턴 Neos\Flow\Session\SessionInterface

getSessionsByTag() 공개 메소드

Returns all sessions which are tagged by the specified tag.
public getSessionsByTag ( string $tag ) : array
$tag string A valid Cache Frontend tag
리턴 array A collection of Session objects or an empty array if tag did not match

프로퍼티 상세

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

protected SessionInterface,Neos\Flow\Session $currentSession
리턴 Neos\Flow\Session\SessionInterface

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

Meta data cache used by sessions
protected VariableFrontend,Neos\Cache\Frontend $metaDataCache
리턴 Neos\Cache\Frontend\VariableFrontend

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

protected array $remoteSessions
리턴 array