You are here: Re: simple thing on session « PHP Language « IT news, forums, messages
Re: simple thing on session

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация