Jump to content

Manual:$wgPHPSessionHandling/pl

From mediawiki.org
This page is a translated version of the page Manual:$wgPHPSessionHandling and the translation is 13% complete.
Cache: $wgPHPSessionHandling
Whether to use PHP session handling ($_SESSION and session_*() functions)
Wprowadzono w wersji:1.27.0 (Gerrit change 243223; git #Ic1ffea7)
Przestarzałe w wersji:1.45.0 (Gerrit change 1190344; git #I0d6eee2)
Usunięto w wersji:nadal w użyciu
Dozwolone wartości:(string)
Domyślna wartość:'warn' (1.45+)
'enable' (1.27-1.44)

Szczegóły

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

Possible values are:

  • enableIntegrate with PHP's session handling as much as possible.
  • warnIntegrate but log warnings if anything changes $_SESSION.
  • disableThrow 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.

In MediaWiki versions before 1.45, disable is not well-tested and might cause issues with non-cookie-based session mechanisms. (T353304)


Uwagi

  1. see magic in includes/Setup.php