sander          Fri Apr 19 12:50:00 2002 EDT

  Modified files:              
    /phpdoc/en/reference/session        reference.xml 
  Log:
  Examples now use session_start();
  
  
Index: phpdoc/en/reference/session/reference.xml
diff -u phpdoc/en/reference/session/reference.xml:1.2 
phpdoc/en/reference/session/reference.xml:1.3
--- phpdoc/en/reference/session/reference.xml:1.2       Mon Apr 15 17:57:22 2002
+++ phpdoc/en/reference/session/reference.xml   Fri Apr 19 12:49:59 2002
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
  <reference id="ref.session">
   <title>Session handling functions</title>
   <titleabbrev>Sessions</titleabbrev>
@@ -82,6 +82,7 @@
      <programlisting role="php">
 <![CDATA[
 <?php
+session_start();
 if (isset($HTTP_SESSION_VARS['count'])) {
    $HTTP_SESSION_VARS['count']++;
 }
@@ -109,6 +110,7 @@
      <programlisting role="php">
 <![CDATA[
 <?php
+session_start();
 // Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
 if (!isset($_SESSION['count'])) {
     $_SESSION['count'] = 0;
@@ -126,9 +128,9 @@
      <programlisting role="php">
 <![CDATA[
 <?php
+session_start();
 // Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
 unset($_SESSION['count']);
-
 ?>
 ]]>
      </programlisting>


Reply via email to