Manual:Hooks/ResetSessionID

From mediawiki.org
ResetSessionID
Available from version 1.22.0 (Gerrit change 78145)
Removed in version 1.26.0 (Gerrit change 236043)
Called when the session ID is reset
Define function:
public static function onResetSessionID( $oldSessionID, $newSessionID ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ResetSessionID": "MediaWiki\\Extension\\MyExtension\\Hooks::onResetSessionID"
	}
}
Called from: File(s): GlobalFunctions.php
Function(s): wfResetSessionID
Interface: ResetSessionIDHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ResetSessionID extensions.


Details[edit]

  • $oldSessionID: old session ID
  • $newSessionID: new session ID