Are you absolutely positive register_globals is off? Is there an .htaccess
file laying around someplace that overrides php.ini and turns it on?

Sorry, I don't have any other ideas.

Kirk

> -----Original Message-----
> From: Patrick Aland [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, April 16, 2002 5:39 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP] Still having session problems
> 
> 
> I cannot for the life of me get the new $_SESSION method working.
> Running php4.1.2 on apache 1.3.24 on RH6.2 Using the code below:
> 
> <?
> session_start();
> if (!isset($_SESSION["count"])) 
> {
>     $_SESSION["count"] = 0;
> } 
> else 
> {
>     $_SESSION["count"]++;
> }
> print($_SESSION["count"]."<BR>\n");
> ?>
> 
> A tmp file is created in /tmp but nothing is put in it.
> If I turn register_globals on, the page above still doesn't 
> work, however if I start and
> register the session via another page using the old method:
> <?
> session_start();
> if (!isset($count)) 
> {
>     $count = 0;
> } 
> else 
> {
>     $count++;
> }
> session_register("count");
> print($count."<BR>\n");
> ?>
> and then go to the first page it does work and updates the 
> tmp file. Any
> There is a bug for similar behavior in 4.1.2 on Windows but I 
> don't see
> a reference to the linux version. 
> 
> Any ideas? Thanks.
> 
> 
> -- 
> ------------------------------------------------------------
>  Patrick Aland                          [EMAIL PROTECTED]
>  Network Administrator                  Voice: 386.822.7217
>  Stetson University                     Fax: 386.822.7367
> ------------------------------------------------------------
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

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

Reply via email to