samesch Mon Oct 7 07:12:19 2002 EDT Modified files: /phpdoc/en/reference/session reference.xml Log: no use of brackets with <function> tags; added <function> tags Index: phpdoc/en/reference/session/reference.xml diff -u phpdoc/en/reference/session/reference.xml:1.17 phpdoc/en/reference/session/reference.xml:1.18 --- phpdoc/en/reference/session/reference.xml:1.17 Mon Oct 7 06:47:15 2002 +++ phpdoc/en/reference/session/reference.xml Mon Oct 7 07:12:19 2002 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.17 $ --> +<!-- $Revision: 1.18 $ --> <reference id="ref.session"> <title>Session handling functions</title> <titleabbrev>Sessions</titleabbrev> @@ -145,9 +145,9 @@ <varname>$HTTP_SESSION_VARS</varname> with PHP 4.0.6 or less) is recommended for improved security and code readablity. With <varname>$_SESSION</varname>, there is no need to use the - <function>session_register()</function>, - <function>session_unregister()</function>, - <function>session_is_registered()</function> functions. Session variables + <function>session_register</function>, + <function>session_unregister</function>, + <function>session_is_registered</function> functions. Session variables are accessible like any other variables. <example> <title> @@ -204,8 +204,9 @@ 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 @@ </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>
-- PHP Documentation Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php