Re: I have a great problem with sessions, can anybody help me!!!

From: Date: Sat, 24 Feb 2001 00:10:45 +0000
Subject: Re: I have a great problem with sessions, can anybody help me!!!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-41408@lists.php.net to get a copy of this message
> <?php > session_start(); > > if( !isset( $c)) { > session_register("c"); > $c = 1; > } > > echo $c . "<br>"; > > ?> > <a href="index.php">reload</A> > > In the new machine this code every show 1, don't save session data. > I see in /tmp and all the sess_* files are empty. > I check configuration, etc, and don't found anything. > > I check the same code in other machine with the same configuration, and > works fine. > > Can anybody help me?? Move the session_register() outside (before) the if() -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#41408) next »