Posted by Geoff Berrow on 01/03/06 09:02
Message-ID: <iYnuf.125988$WH.82336@dukeread01> from Frank R. Jr.
contained the following:
>Was hoping to get more response before I reply, I semi understand what
>your saying by session variable you do mean cookie? And do you know
>where I could find an example of this?
The session section of the manual is daunting but does contain this. ;-)
I just added the echo.
<?php
session_start();
// Use $HTTP_SESSION_VARS with PHP 4.0.6 or less
if (!isset($_SESSION['count'])) {
$_SESSION['count'] = 0;
} else {
$_SESSION['count']++;
}
echo $_SESSION['count'];
?>
The session data is stored on the server, an is referenced most commonly
by a volatile cookie. This is lost when the browser window is closed.
Each page using the session variable has to have session_start(); as
the first line
--
Geoff Berrow 0110001001101100010000000110
001101101011011001000110111101100111001011
100110001101101111001011100111010101101011
[Back to original message]
|