Go to the documentation of this file.
35 session_set_save_handler(
36 array( __CLASS__,
'open' ),
37 array( __CLASS__,
'close' ),
38 array( __CLASS__,
'read' ),
39 array( __CLASS__,
'write' ),
40 array( __CLASS__,
'destroy' ),
41 array( __CLASS__,
'gc' ) );
47 register_shutdown_function(
array( __CLASS__,
'handleShutdown' ) );
54 global $wgSessionCacheType;
75 static function open( $save_path, $session_name ) {
95 static function read( $id ) {
97 if ( $data ===
false ) {
110 static function write( $id, $data ) {
111 global $wgObjectCacheSessionExpiry;
112 self::getCache()->set( self::getKey( $id ), $data, $wgObjectCacheSessionExpiry );
134 static function gc( $maxlifetime ) {
143 session_write_close();
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
static open( $save_path, $session_name)
Callback when opening a session.
static destroy( $id)
Callback to destroy a session when calling session_destroy().
static write( $id, $data)
Callback when writing session data.
static close()
Callback when closing a session.
static gc( $maxlifetime)
Callback to execute garbage collection.
wfMemcKey()
Get a cache key.
static getInstance( $id)
Get a cached instance of the specified type of cache object.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
static read( $id)
Callback when reading session data.
static install()
Install a session handler for the current web request.
static handleShutdown()
Shutdown function.
static getKey( $id)
Get a cache key for the given session id.
Session storage in object cache.
static getCache()
Get the cache storage object to use for session storage.