MediaWiki  master
DummySessionProvider Class Reference

Dummy session provider. More...

Inheritance diagram for DummySessionProvider:
Collaboration diagram for DummySessionProvider:

Public Member Functions

 canChangeUser ()
 
 immutableSessionCouldExistForUser ( $user)
 
 newSessionInfo ( $id=null)
 
 persistSession (SessionBackend $session, WebRequest $request)
 
 persistsSessionId ()
 
 preventImmutableSessionsForUser ( $user)
 
 provideSessionInfo (WebRequest $request)
 
 suggestLoginUsername (WebRequest $request)
 
 unpersistSession (WebRequest $request)
 
- Public Member Functions inherited from MediaWiki\Session\SessionProvider
 __construct ()
 
 __toString ()
 
 canChangeUser ()
 Indicate whether the user associated with the request can be changed. More...
 
 describe (Language $lang)
 Return an identifier for this session type. More...
 
 getAllowedUserRights (SessionBackend $backend)
 Fetch the rights allowed the user when the specified session is active. More...
 
 getManager ()
 Get the session manager. More...
 
 getRememberUserDuration ()
 Returns the duration (in seconds) for which users will be remembered when Session::setRememberUser() is set. More...
 
 getVaryCookies ()
 Return the list of cookies that need varying on. More...
 
 getVaryHeaders ()
 Return the HTTP headers that need varying on. More...
 
 invalidateSessionsForUser (User $user)
 Invalidate existing sessions for a user. More...
 
 mergeMetadata (array $savedMetadata, array $providedMetadata)
 Merge saved session provider metadata. More...
 
 newSessionInfo ( $id=null)
 Provide session info for a new, empty session. More...
 
 persistSession (SessionBackend $session, WebRequest $request)
 Persist a session into a request/response. More...
 
 persistsSessionId ()
 Indicate whether self::persistSession() can save arbitrary session IDs. More...
 
 preventSessionsForUser ( $username)
 Prevent future sessions for the user. More...
 
 provideSessionInfo (WebRequest $request)
 Provide session info for a request. More...
 
 refreshSessionInfo (SessionInfo $info, WebRequest $request, &$metadata)
 Validate a loaded SessionInfo and refresh provider metadata. More...
 
 sessionIdWasReset (SessionBackend $session, $oldId)
 Notification that the session ID was reset. More...
 
 setConfig (Config $config)
 Set configuration. More...
 
 setLogger (LoggerInterface $logger)
 
 setManager (SessionManager $manager)
 Set the session manager. More...
 
 suggestLoginUsername (WebRequest $request)
 Get a suggested username for the login form. More...
 
 unpersistSession (WebRequest $request)
 Remove any persisted session from a request/response. More...
 
 whyNoSession ()
 Return a Message for why sessions might not be being persisted. More...
 

Public Attributes

const ID = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWiki\Session\SessionProvider
 describeMessage ()
 Return a Message identifying this session type. More...
 
 hashToSessionId ( $data, $key=null)
 Hash data as a session ID. More...
 
- Protected Attributes inherited from MediaWiki\Session\SessionProvider
Config $config
 
LoggerInterface $logger
 
SessionManager $manager
 
int $priority
 Session priority. More...
 

Detailed Description

Dummy session provider.

An implementation of a session provider that doesn't actually do anything.

Definition at line 13 of file DummySessionProvider.php.

Member Function Documentation

◆ canChangeUser()

DummySessionProvider::canChangeUser ( )

Definition at line 40 of file DummySessionProvider.php.

References persistsSessionId().

◆ immutableSessionCouldExistForUser()

DummySessionProvider::immutableSessionCouldExistForUser (   $user)

Definition at line 50 of file DummySessionProvider.php.

◆ newSessionInfo()

DummySessionProvider::newSessionInfo (   $id = null)

Definition at line 26 of file DummySessionProvider.php.

◆ persistSession()

DummySessionProvider::persistSession ( SessionBackend  $session,
WebRequest  $request 
)

Definition at line 44 of file DummySessionProvider.php.

◆ persistsSessionId()

DummySessionProvider::persistsSessionId ( )

Definition at line 36 of file DummySessionProvider.php.

Referenced by canChangeUser().

◆ preventImmutableSessionsForUser()

DummySessionProvider::preventImmutableSessionsForUser (   $user)

Definition at line 54 of file DummySessionProvider.php.

◆ provideSessionInfo()

DummySessionProvider::provideSessionInfo ( WebRequest  $request)

Definition at line 17 of file DummySessionProvider.php.

◆ suggestLoginUsername()

DummySessionProvider::suggestLoginUsername ( WebRequest  $request)

Definition at line 57 of file DummySessionProvider.php.

References WebRequest\getCookie().

◆ unpersistSession()

DummySessionProvider::unpersistSession ( WebRequest  $request)

Definition at line 47 of file DummySessionProvider.php.

Member Data Documentation

◆ ID

const DummySessionProvider::ID = 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'

The documentation for this class was generated from the following file: