-
Notifications
You must be signed in to change notification settings - Fork 152
/
write.xml
98 lines (93 loc) · 3.29 KB
/
write.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<?xml version="1.0" encoding="utf-8"?>
<!-- EN-Revision: 601f6f4ce5827d441a7e110184708f0abe9fd447 Maintainer: jpauli Status: ready -->
<!-- Reviewed: no -->
<refentry xml:id="sessionhandlerinterface.write" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink">
<refnamediv>
<refname>SessionHandlerInterface::write</refname>
<refpurpose>Ecrit les données de session</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<methodsynopsis role="SessionHandlerInterface">
<modifier>public</modifier> <type>bool</type><methodname>SessionHandlerInterface::write</methodname>
<methodparam><type>string</type><parameter>id</parameter></methodparam>
<methodparam><type>string</type><parameter>data</parameter></methodparam>
</methodsynopsis>
<para>
Écrit les données de session dans le stockage de session. Appelé par
<function>session_write_close</function>, lorsque <function>session_register_shutdown</function> échoue, ou lors d'un arrêt normal.
Note : <function>SessionHandlerInterface::close</function> est appelée immédiatement après cette fonction.
</para>
<para>
PHP appellera cette fonction lorsque la session est prête à être sauvegardée et fermée.
Il encode les données issues de <varname>$_SESSION</varname> vers une chaine sérialisée et la passe avec l'ID de
session au support de stockage. La méthode de sérialisation utilisée
est définie dans le paramètre
<link linkend="ini.session.serialize-handler">session.serialize_handler</link>.
</para>
<para>
Cette méthode est normalement appelée par PHP après que les tampons de sortie ont été fermé
sauf si <function>session_write_close</function> est explicitement appelé.
</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<variablelist>
<varlistentry>
<term><parameter>id</parameter></term>
<listitem>
<para>
L'identifiant de session.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>data</parameter></term>
<listitem>
<para>
Les données de session encodées. Ces données sont le résultat de l'encodage interne par PHP de la superglobale <varname>$_SESSION</varname>
à une chaine sérialisée et le passer en tant que ce paramètre.
Veuillez noter que les sessions utilise une méthode de sérialisation alternative.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>
&returns.session.storage.retval;
</para>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member>
La directive de configuration
<link linkend="ini.session.serialize-handler">session.serialize_handler</link>
</member>
</simplelist>
</para>
</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
-->