Posted by vdP on 10/21/43 11:33
Jean Pierre Daviau wrote:
> Hi all and every one
>
> Eassy php 1.7 does not seem to keep session information between pages.
>
>
> ======== page 1 ===================
>
> <?
> session_start();
> session_register("sess_var");
> $sess_var = "Hello world!";
session_register doesn't work if the directive register_globals is
disabled. As Easy PHP 1.7 includes PHP 4.3.3, register_globals is off by
default. To register $sess_var use
$_SESSION["sess_var"]=$sess_var;
or the more direct
$_SESSION["sess_var"]="Hello world!";
<SNIP>
>
> if (!session_is_registered('compteur'))
> echo "!session_is_registered <br>";
Why do you use 'compteur' in this if-statement?
vdP
Navigation:
[Reply to this message]
|