added tags; s/mimick/mimic; wrapped some lines

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@114167 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Martin Samesch 2003-01-31 19:14:58 +00:00
parent 376ecb7b1f
commit 166dc4bfb6

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- $Revision: 1.8 $ -->
<!-- splitted from ./en/functions/session.xml, last change in rev 1.2 -->
<refentry id="function.session-register">
<refnamediv>
@ -24,28 +24,33 @@
</para>
<caution>
<para>
If you want your script to work regardless of register_globals, you need
to use the $_SESSION array. All $_SESSION entries are automatically
registered. If your script uses session_register(), it will not work in
environments where register_globals is disabled.
If you want your script to work regardless of <link
linkend="ini.register-globals"><literal>register_globals</literal></link>,
you need to use the <varname>$_SESSION</varname> array. All
<varname>$_SESSION</varname> entries are automatically
registered. If your script uses
<function>session_register</function>, it will not work in
environments where <link
linkend="ini.register-globals"><literal>register_globals</literal></link>
is disabled.
</para>
</caution>
<caution>
<para>
This registers a <emphasis>global</emphasis> variable. If you want to
register a session variable from within a function, you need to make sure to
make it global using the
<link linkend="language.variables.scope"><command>global</command></link>
keyword or the <varname>$GLOBALS[]</varname> array, or use the special session
arrays as noted below.
This registers a <emphasis>global</emphasis> variable. If you
want to register a session variable from within a function, you
need to make sure to make it global using the <link
linkend="language.variables.scope"><command>global</command></link>
keyword or the <varname>$GLOBALS[]</varname> array, or use the
special session arrays as noted below.
</para>
</caution>
<caution>
<para>
If you are using
<varname>$_SESSION</varname> (or <varname>$HTTP_SESSION_VARS</varname>),
do not use <function>session_register</function>,
<function>session_is_registered</function> and
If you are using <varname>$_SESSION</varname>
(or <varname>$HTTP_SESSION_VARS</varname>), do not use
<function>session_register</function>,
<function>session_is_registered</function>, and
<function>session_unregister</function>.
</para>
</caution>
@ -56,7 +61,7 @@
<para>
If <function>session_start</function> was not called before this function
is called, an implicit call to <function>session_start</function> with no
parameters will be made. <varname>$_SESSION</varname> does not mimick
parameters will be made. <varname>$_SESSION</varname> does not mimic
this behavior and requires <function>session_start</function> before use.
</para>
<para>