use Psr\Log\LoggerInterface;
use User;
use WebRequest;
+use Wikimedia\AtEase\AtEase;
/**
* This is the actual workhorse for Session.
/** @var SessionId */
private $id;
+ /** @var bool */
private $persist = false;
+
+ /** @var bool */
private $remember = false;
+
+ /** @var bool */
private $forceHTTPS = false;
/** @var array|null */
private $data = null;
+ /** @var bool */
private $forcePersist = false;
+
+ /** @var bool */
private $metaDirty = false;
+
+ /** @var bool */
private $dataDirty = false;
/** @var string Used to detect subarray modifications */
/** @var User */
private $user;
+ /** @var int */
private $curIndex = 0;
/** @var WebRequest[] Session requests */
/** @var array|null provider-specified metadata */
private $providerMetadata = null;
+ /** @var int */
private $expires = 0;
+
+ /** @var int */
private $loggedOut = 0;
+
+ /** @var int */
private $delaySave = 0;
+ /** @var bool */
private $usePhpSessionHandling = true;
+ /** @var bool */
private $checkPHPSessionRecursionGuard = false;
+ /** @var bool */
private $shutdown = false;
/**
if ( $restart ) {
session_id( (string)$this->id );
- \Wikimedia\quietCall( 'session_start' );
+ AtEase::quietCall( 'session_start' );
}
$this->autosave();
// Delete the data for the old session ID now
$this->store->delete( $this->store->makeKey( 'MWSession', $oldId ) );
}
+
+ return $this->id;
}
/**
* Save the session
*
* Update both the backend data and the associated WebRequest(s) to
- * reflect the state of the the SessionBackend. This might include
+ * reflect the state of the SessionBackend. This might include
* persisting or unpersisting the session.
*
* @param bool $closing Whether the session is being closed
'session' => $this->id,
] );
session_id( (string)$this->id );
- \Wikimedia\quietCall( 'session_start' );
+ AtEase::quietCall( 'session_start' );
}
}
}