Manual:$wgPHPSessionHandling/zh

Category:MediaWiki configuration settings/zh#PHPSessionHandlingCategory:MediaWiki configuration settings introduced in version 1.27.0/zh#PHPSessionHandlingCategory:MediaWiki configuration settings still in use/zh#PHPSessionHandlingCategory:Cache variables/zh#PHPSessionHandling
缓存: $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
引进版本:1.27.0 (Gerrit change 243223; git #Ic1ffea7)
移除版本:仍在使用
允许的值:(string)
'enable'

详情

Whether to use PHP session handling ($_SESSION and session_*() functions) in SessionManager.

可能的值:

  • enable - Integrate with PHP's session handling as much as possible.
  • warn - Integrate but log warnings if anything changes $_SESSION.
  • disable - Throw exceptions if PHP session handling is used.

If $wgPHPSessionHandling is set to an invalid value (e.g. any string not listed above), it will automatically be set to warn.[1]

If the constant MW_NO_SESSION is defined, $wgPHPSessionHandling is forced to 'disable'.

If the constant MW_NO_SESSION_HANDLER is defined, $wgPHPSessionHandling is ignored and PHP session handling will function independently of SessionHandler. SessionHandler and PHP's session handling may attempt to override each others' cookies.

注释

  1. see magic in includes/Setup.php
Category:Cache variables/zh Category:MediaWiki configuration settings/zh Category:MediaWiki configuration settings introduced in version 1.27.0/zh Category:MediaWiki configuration settings still in use/zh Category:Pages using the JsonConfig extension