Manual:Hooks/ResetSessionID

From Linux Web Expert

ResetSessionID
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 78145)</tvar></translate>
<translate> Removed in <tvar name=1><translate> version <tvar (Gerrit change 236043)</tvar></translate>
Called when the session ID is reset
<translate> Define function:</translate>
public static function onResetSessionID( $oldSessionID, $newSessionID ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ResetSessionID": "MediaWiki\\Extension\\MyExtension\\Hooks::onResetSessionID"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> GlobalFunctions.php
<translate> Function(s):</translate> wfResetSessionID
<translate> Interface:</translate> ResetSessionIDHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ResetSessionID extensions</tvar>.</translate>


Details

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