Re: Session prob

From: Date: Sun, 05 Oct 2003 17:47:42 +0000
Subject: Re: Session prob
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-21683@lists.php.net to get a copy of this message
Use session_start(). <?php session_start(); if (! isset($_SESSION['count'])) { $_SESSION['count'] = 1; } else { $_SESSION['count']++; } print $_SESSION['count']; ?> -- Fernando Correa da Conceição ICQ 168518047 http://manualphp.sourceforge.net Participe da Tradução do Manual do PHP "Disko_kex" <disko_kex@swedish-mushroom.com> escreveu na mensagem news:001e01c38b5d$05b56820$e900a8c0@lokalguirdcfee... <?php if (! isset($_SESSION['count'])) { $_SESSION['count'] = 1; } else { $_SESSION['count']++; } print $_SESSION['count']; ?> Why isn´t this working? Is there something I done wrong during the installation or what?

« previous php.windows (#21683) next »