Manual:$wgPHPSessionHandling

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgPHPSessionHandling and the translation is 21% complete.

Other languages:
English • ‎dansk • ‎中文 • ‎日本語
認証: $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
導入されたバージョン:1.27.0
除去されたバージョン:使用中
許容される値: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.

Notes

  1. see magic in includes/Setup.php