Hello i had the same problem with horde (apache and php 4.1.1)
(tried with apache 1.3.19, 1.3.20 and 1.3.22)

i tried with session.use_cookies=0 in the php.ini
and now it's correct, perhaps a cookie's management bug ?
jean-david Arzur


Henrik Hudson wrote:
> Just FYI. I posted the forwarded question earlier, but did some more testing.
> 
> I was doing some testing tonight when server traffic was low (ie: stop / 
> restart Apache) and I found out that when register_globals is On, the below 
> code doesn't work. Is this something to do with the EGPCS  and how variables 
> are inherited? When register_globals is off, the code works great. Could 
> someone explain why that is? That'd be great :)
> 
> I would have thought that you can still access the HTTP_SESSION_VARS even if 
> globals is on?
> 
> Thanks.
> 
> Henrik
> 
> On Sunday 20 January 2002 15:12, Henrik Hudson wrote:
> 
>>Hey List-
>>
>>Banging my head again the wall with this one. One of our developers was
>>trying to get some session stuff to work and he couldn't and asked me to
>>look into it.
>>
>>I have a script that contains the following (the sessions.php href
>>reference is the same script accept it calls this one):
>>
>>_____________________________
>>session_start();
>>
>>if (!isset($HTTP_SESSION_VARS[count])) {
>>    $HTTP_SESSION_VARS[count] = 0;
>>}
>>else {
>>    $HTTP_SESSION_VARS[count]++;
>>}
>>//Print the counter
>>
>>echo "Counter is now: $HTTP_SESSION_VARS[count];\n<br>\n";
>>echo "Let's go to another <a href=\"sessions.php\">page</a>...<br><br>";
>>_______________________________
>>
>>On my box at home running PHP 4.0.6 it works great.
>>
>>On the work server running PHP 4.0.6 it doesn't work. Just keeps setting
>>count to 0.
>>
>>The work box is running Apache 1.3.20 with the following compile options:
>>
>> './configure' '--with-apxs' '--with-config-file-path=/etc/php'
>>'--with-openssl=/usr/local/openssl' '--with-zlib' '--with-bz2'
>>'--with-pspell' '--enable-ftp' '--enable-gd' '--with-imap' '--with-mcrypt'
>>'--with-mhash' '--with-mysql=/usr/local/mysql'
>>
>>The home box is running Apache 1.3.22 with the following compile options:
>>
>> './configure' '--with-apxs' '--with-config-file-path=/etc/php'
>>'--with-openssl=/usr/local/openssl' '--with-zlib' '--with-bz2'
>>'--with-mysql=/usr/local/mysql' '--with-mcrypt' '--with-mhash'
>>'--disable-xml' '--enable-ftp' '--with-gettext' '--with-pspell'
>>'--enable-inline-optimization'
>>
>>The only major difference that I could find in the php.ini file is that at
>>home I have register globals off and at work they are on?
>>
>>Even with register globals on, you can still use the $HTTP_*_VARS, right?
>>
>>The sessionID cookie is getting put into my browser, I checked so the
>>"session" is starting correctly, just not retaining the variable.
>>
>>Any ideas anyone?
>>
>>
>>Thanks list.
>>
>>Henrik
>>
> 



-- 
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]

Reply via email to