Свойство | Тип | Описание | |
---|---|---|---|
$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 |
protected static backupForeignSession ( ) : boolean | ||
Результат | boolean |
public static getReadOnly ( string $namespace = "pimcore_admin" ) : stdClass | ||
$namespace | string | |
Результат | stdClass |
public static isSessionCookieCleanupNeeded ( ) : boolean | ||
Результат | boolean |
protected static restoreForeignSession ( ) : boolean | ||
Результат | boolean |
public static useSession ( $func, string $namespace = "pimcore_admin" ) : mixed | ||
$func | ||
$namespace | string | |
Результат | mixed |
protected static $openedSessions |
protected static array $restoreSession | ||
Результат | array |
protected static bool $sessionCookieCleanupNeeded | ||
Результат | boolean |
protected static array $sessions | ||
Результат | array |