|
Posted by Frank R. Jr. on 01/03/06 09:13
Ok, that helped a little thanks for the example I am going to look into
the manual some more it looks like it will be in there now that I know
what I have to do. But by the way all of the manual is daunting.
Frank R. Jr.
-----Original Message-----
From: Geoff Berrow [mailto:blthecat@ckdog.co.uk]
Posted At: Tuesday, January 03, 2006 1:02 AM
Posted To: alt.php
Conversation: mysql help
Subject: Re: mysql help
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
Navigation:
[Reply to this message]
|