Manual:Hooks/ResetSessionID

From MediaWiki.org
Jump to navigation Jump to search
ResetSessionID
Available from version 1.22.0 (Gerrit change 78145)
Removed in version 1.26.0
Called when the session ID is reset
Define function:
public static function onResetSessionID( $oldSessionID, $newSessionID ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ResetSessionID": "MyExtensionHooks::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