Posted by Oli Filth on 05/10/05 00:58
Sa wrote:
> Hi, all
>
> i must say that i'm new in using sessions and i though i understood the
> meaning work of them..
> but i have such script that don't do properly what i want.
>
> Its really a simple store of a variable counter...
>
> i firstly use:
<SNIP CODE>
Don't bother using session_register(), session_is_registered(), etc. Use
$_SESSION, as recommended by the manual (assuming you have PHP 4.0.6+)
e.g.
<?php
session_start();
if (!isset($_SESSION["key"]))
{
...
$_SESSION["key"] = $var;
}
?>
--
Oli
[Back to original message]
|