MediaWiki REL1_35
MediaWiki\Session\Hook\SessionCheckInfoHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Session\Hook\SessionCheckInfoHook:

Public Member Functions

 onSessionCheckInfo (&$reason, $info, $request, $metadata, $data)
 Use this hook to validate a MediaWiki\Session\SessionInfo as it's being loaded from storage.
 

Detailed Description

Stable to implement.

Definition at line 12 of file SessionCheckInfoHook.php.

Member Function Documentation

◆ onSessionCheckInfo()

MediaWiki\Session\Hook\SessionCheckInfoHook::onSessionCheckInfo ( $reason,
  $info,
  $request,
  $metadata,
  $data 
)

Use this hook to validate a MediaWiki\Session\SessionInfo as it's being loaded from storage.

Since
1.35
Parameters
string&$reasonRejection reason to be logged
SessionInfo$infoMediaWiki\Session\SessionInfo being validated
WebRequest$requestWebRequest being loaded from
array | bool$metadataMetadata array for the MediaWiki\Session\Session
array | bool$dataData array for the MediaWiki\Session\Session
Returns
bool|void True or no return value to continue, or false to to prevent the MediaWiki\Session\SessionInfo from being used

Implemented in MediaWiki\HookContainer\HookRunner.


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