1
0
mirror of https://github.com/php/doc-ru.git synced 2026-03-25 16:22:18 +01:00
Files
archived-doc-ru/reference/session/functions/session-module-name.xml
Sergey Panteleev daef8df962 Обнуление тега Reviewed (#364)
[skip-lint]
[skip-spellcheck]
2021-11-16 13:03:53 +03:00

100 lines
3.2 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 151e61773c016edcae8fd4989ad9a86ffd03c283 Maintainer: mch Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="function.session-module-name" xmlns="http://docbook.org/ns/docbook">
<refnamediv>
<refname>session_module_name</refname>
<refpurpose>Возвращает и/или устанавливает модуль текущей сессии</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis>
<type class="union"><type>string</type><type>false</type></type><methodname>session_module_name</methodname>
<methodparam choice="opt"><type class="union"><type>string</type><type>null</type></type><parameter>module</parameter><initializer>&null;</initializer></methodparam>
</methodsynopsis>
<para>
<function>session_module_name</function> возвращает название текущего
модуля сессии, которое также известен как
<link linkend="ini.session.save-handler">session.save_handler</link>.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>module</parameter></term>
<listitem>
<para>
Если указан параметр <parameter>module</parameter> и не равен &null;, данный модуль будет
использован вместо текущего.
Передача значения <literal>"user"</literal> в этот параметр запрещена. Вместо этого
должна вызываться функция <function>session_set_save_handler</function> для установки
пользовательского обработчика.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
Возвращает название текущего модуля сессии&return.falseforfailure;.
</para>
</refsect1>
<refsect1 role="changelog">
&reftitle.changelog;
<informaltable>
<tgroup cols="2">
<thead>
<row>
<entry>&Version;</entry>
<entry>&Description;</entry>
</row>
</thead>
<tbody>
<row>
<entry>8.0.0</entry>
<entry>
<parameter>module</parameter> теперь может быть &null;.
</entry>
</row>
<row>
<entry>7.2.0</entry>
<entry>
В данный момент запрещено устанавливать имя модуля на значение
<literal>"user"</literal>. Ранее это игнорировалось.
</entry>
</row>
</tbody>
</tgroup>
</informaltable>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->