Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
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 ( ) |
Méthode | Description | |
---|---|---|
backupForeignSession ( ) : boolean | ||
restoreForeignSession ( ) : boolean |
protected static backupForeignSession ( ) : boolean | ||
Résultat | boolean |
public static getReadOnly ( string $namespace = "pimcore_admin" ) : stdClass | ||
$namespace | string | |
Résultat | stdClass |
public static isSessionCookieCleanupNeeded ( ) : boolean | ||
Résultat | boolean |
protected static restoreForeignSession ( ) : boolean | ||
Résultat | boolean |
public static useSession ( $func, string $namespace = "pimcore_admin" ) : mixed | ||
$func | ||
$namespace | string | |
Résultat | mixed |
protected static $openedSessions |
protected static array $restoreSession | ||
Résultat | array |
protected static bool $sessionCookieCleanupNeeded | ||
Résultat | boolean |
protected static array $sessions | ||
Résultat | array |