array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.session-module-name.php', 1 => 'session_module_name', 2 => 'Get and/or set the current session module', ), 'up' => array ( 0 => 'ref.session.php', 1 => 'Session Функції', ), 'prev' => array ( 0 => 'function.session-id.php', 1 => 'session_id', ), 'next' => array ( 0 => 'function.session-name.php', 1 => 'session_name', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/session/functions/session-module-name.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>
(PHP 4, PHP 5, PHP 7, PHP 8)
session_module_name — Get and/or set the current session module
session_module_name() gets the name of the current session module, which is also known as session.save_handler.
module
If module
is specified and not null
, that module will be
used instead.
Passing "user"
to this parameter is forbidden. Instead
session_set_save_handler() has to be called to set a user
defined session handler.
Returns the name of the current session module, або false
в разі помилки.
Версія | Опис |
---|---|
8.0.0 |
module is nullable now.
|
7.2.0 |
It is now explicitly forbidden to set the module name to
"user" . Formerly, this has been silently ignored.
|