From 16f04f7a49813f4b28bbdf2c967d52a9b5271707 Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Thu, 3 Oct 2002 08:02:03 +0000 Subject: [PATCH] typos this needs a rewrite, some parts are incomprehensible due to lack of structure. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@97896 c90b9560-bf6c-de11-be94-00142212c4b1 --- reference/session/reference.xml | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/reference/session/reference.xml b/reference/session/reference.xml index 5b4273e4bd..f4d8e9016e 100644 --- a/reference/session/reference.xml +++ b/reference/session/reference.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -134,10 +134,11 @@ Use of $_SESSION (or $HTTP_SESSION_VARS with PHP 4.0.6 or less) is recommended for improved security and code readablity. With - $_SESSION, there is no need to use - session_register()/session_unregister()/session_is_registered() - functions. Session variables are accessible like any other - variables. + $_SESSION, there is no need to use the + session_register(), + session_unregister(), + session_is_registered() functions. Session variables + are accessible like any other variables. Registering a variable with $_SESSION. @@ -179,7 +180,7 @@ unset($_SESSION['count']); <![CDATA[ <?php session_start(); -// With PHP 4.3 and later, you can also use simply use the prior example. +// With PHP 4.3 and later, you can also simply use the prior example. session_unregister('count'); ?> ]]> @@ -189,12 +190,12 @@ session_unregister('count'); <para> If <link linkend="ini.register-globals"><literal>register_globals</literal></link> - is enabled, then all global variables can be registered as session - variables and the session variables will be restored to corresponding - global variables. Since PHP must know which global variables are - registered as session variables, users need to register variables with - session_register() function. You can avoid this by simply setting entries - in <varname>$_SESSION</varname>. + is enabled, then each global variable can be registered as session + variable. Upon a restart of a session, these variables will be restored + to corresponding global variables. Since PHP must know which global + variables are registered as session variables, users need to register + variables with session_register() function. You can avoid this by simply + setting entries in <varname>$_SESSION</varname>. <caution> <para> If you are using