Re: $_SESSION lost
| From: | Daniel Brown | Date: | Fri, 16 May 2008 14:35:40 +0000 |
| Subject: | Re: $_SESSION lost | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-274427@lists.php.net to get a copy of this message | ||
On Fri, May 16, 2008 at 12:36 AM, hce <webmail.hce@gmail.com> 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.