cvs: phpdoc /en/reference/session reference.xml

From: Date: Fri, 19 Apr 2002 16:50:00 +0000
Subject: cvs: phpdoc /en/reference/session reference.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969344605@lists.php.net to get a copy of this message
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>

« previous php.doc (#969344605) next »