> <?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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]