diff --git a/reference/session/reference.xml b/reference/session/reference.xml index 5a8b6aa5bd..8da66f0aa0 100644 --- a/reference/session/reference.xml +++ b/reference/session/reference.xml @@ -1,5 +1,5 @@ - + Session handling functions Sessions @@ -145,9 +145,9 @@ $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 the - session_register(), - session_unregister(), - session_is_registered() functions. Session variables + session_register, + session_unregister, + session_is_registered functions. Session variables are accessible like any other variables. @@ -204,8 +204,9 @@ session_unregister('count'); 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>. + variables with <function>session_register</function> function. + You can avoid this by simply setting entries in + <varname>$_SESSION</varname>. <caution> <para> If you are using @@ -258,12 +259,13 @@ else { </para> <para> Additionally, if you register a new session variable by using - <function>session_register()</function>, the entry in the global scope + <function>session_register</function>, the entry in the global scope and the <varname>$_SESSION</varname> entry will not reference the same - value until the next session start (this applies to PHP 4.2 and before - only). I.e. a modification to the global variable will not be reflected - by the <varname>$_SESSION</varname> entry. This is unlikely to matter in - practice and has been corrected in PHP 4.3. + value until the next <function>session_start</function> (this + applies to PHP 4.2 and before only). I.e. a modification to the + global variable will not be reflected by the + <varname>$_SESSION</varname> entry. This is unlikely to matter + in practice and has been corrected in PHP 4.3. </para> </section>