joey            Mon Jun  2 23:50:53 2003 EDT

  Modified files:              
    /phpdoc/en/reference/session        reference.xml 
  Log:
  Use $_SESSION superglobal instead of assuming register_globals = On
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.37 
phpdoc/en/reference/session/reference.xml:1.38
--- phpdoc/en/reference/session/reference.xml:1.37      Mon May 19 08:09:26 2003
+++ phpdoc/en/reference/session/reference.xml   Mon Jun  2 23:50:52 2003
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.37 $ -->
+<!-- $Revision: 1.38 $ -->
  <reference id="ref.session">
   <title>Session handling functions</title>
   <titleabbrev>Sessions</titleabbrev>
@@ -268,12 +268,11 @@
       <programlisting role="php">
 <![CDATA[
 <?php
-if (!session_is_registered('count')) {
-    session_register("count");
-    $count = 0;
+if (! isset($_SESSION['count'])) {
+    $_SESSION['count'] = 1;
 }
 else {
-    $count++;
+    $_SESSION['count']++;
 }
 ?>
 ]]>



-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to