Re: $_SESSION lost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, May 16, 2008 at 12:36 AM, hce <webmail.hce@xxxxxxxxx> wrote:
> Hi,
>
> I've just installed PHP 5.2.4 on a FC 7 with a web server.
>
> $ php -v
> PHP 5.2.4 (cli) (built: Sep 18 2007 08:50:58)
> Copyright (c) 1997-2007 The PHP Group
> Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies

    That's the CLI version, which is likely completely different from
your web version.  They're generally two separate binaries.

> It seems some PHP module might be missing, I tested it with a page1.php:

    Sessions are handled in the core, not in a module.

> session_start();
> $_SESSION['favcolor'] = 'green';
>
> Then I click a link in page1.php to go another page2.php:
>
> session_start();
> echo "favcolr =" . $_SESSION['favcolor'];
>
> It only displayed "favcolr =", it was empty in $_SESSION['favcolor'].
> The test script page1.php and page2.php are working fine on other
> machines.

    Send the actual code and we can take a look at it.  It's probably
something as simple as a typo.

-- 
</Daniel P. Brown>
Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just
$59.99/mo. with no contract!
Dedicated servers, VPS, and hosting from $2.50/mo.

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux