PHP 클래스 Pimcore\Tool\Session

파일 보기 프로젝트 열기: pimcore/pimcore 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$openedSessions contains how many sessions are currently open, this is important, because writeClose() must not be called if there is still an open session, this is especially important if something doesn't use the method use() but get() so the session isn't closed automatically after the action is done
$options array
$restoreSession array
$sessionCookieCleanupNeeded boolean when using mod_php, session_start() always adds an Set-Cookie header when called, this is the case in self::get(), so depending on how often self::get() is called the more header will get added to the response, so we clean them up in Pimcore::outputBufferEnd() to avoid problems with (reverse-)proxies such as Varnish who do not like too much Set-Cookie headers
$sessions array contains the session namespace objects

공개 메소드들

메소드 설명
get ( string $namespace = "pimcore_admin", boolean $readOnly = false ) : Zend_Session_Namespace
getOption ( $name ) : mixed
getReadOnly ( string $namespace = "pimcore_admin" ) : stdClass
isSessionCookieCleanupNeeded ( ) : boolean
regenerateId ( )
setOption ( $name, $value )
useSession ( $func, string $namespace = "pimcore_admin" ) : mixed
writeClose ( )

보호된 메소드들

메소드 설명
backupForeignSession ( ) : boolean
restoreForeignSession ( ) : boolean

메소드 상세

backupForeignSession() 보호된 정적인 메소드

protected static backupForeignSession ( ) : boolean
리턴 boolean

get() 공개 정적인 메소드

public static get ( string $namespace = "pimcore_admin", boolean $readOnly = false ) : Zend_Session_Namespace
$namespace string
$readOnly boolean
리턴 Zend_Session_Namespace

getOption() 공개 정적인 메소드

public static getOption ( $name ) : mixed
$name
리턴 mixed

getReadOnly() 공개 정적인 메소드

public static getReadOnly ( string $namespace = "pimcore_admin" ) : stdClass
$namespace string
리턴 stdClass

isSessionCookieCleanupNeeded() 공개 정적인 메소드

public static isSessionCookieCleanupNeeded ( ) : boolean
리턴 boolean

regenerateId() 공개 정적인 메소드

public static regenerateId ( )

restoreForeignSession() 보호된 정적인 메소드

protected static restoreForeignSession ( ) : boolean
리턴 boolean

setOption() 공개 정적인 메소드

public static setOption ( $name, $value )
$name
$value

useSession() 공개 정적인 메소드

public static useSession ( $func, string $namespace = "pimcore_admin" ) : mixed
$func
$namespace string
리턴 mixed

writeClose() 공개 정적인 메소드

public static writeClose ( )

프로퍼티 상세

$openedSessions 보호되어 있는 정적으로 프로퍼티

contains how many sessions are currently open, this is important, because writeClose() must not be called if there is still an open session, this is especially important if something doesn't use the method use() but get() so the session isn't closed automatically after the action is done
protected static $openedSessions

$options 보호되어 있는 정적으로 프로퍼티

protected static array $options
리턴 array

$restoreSession 보호되어 있는 정적으로 프로퍼티

protected static array $restoreSession
리턴 array

$sessionCookieCleanupNeeded 보호되어 있는 정적으로 프로퍼티

when using mod_php, session_start() always adds an Set-Cookie header when called, this is the case in self::get(), so depending on how often self::get() is called the more header will get added to the response, so we clean them up in Pimcore::outputBufferEnd() to avoid problems with (reverse-)proxies such as Varnish who do not like too much Set-Cookie headers
protected static bool $sessionCookieCleanupNeeded
리턴 boolean

$sessions 보호되어 있는 정적으로 프로퍼티

contains the session namespace objects
protected static array $sessions
리턴 array