[PHP] Re: differences in session handling between 4.1.1 and 4.3.1

2003-06-28 Thread Bobby Patel
maybe compare the php settings for both servers (using  phpinfo()). Also
check the register globals setting.  I know this might not be a big help,
but it's a start.

good luck

Bobby
Anders Thoresson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Are there any big differences in session handling between 4.1.1 and 4.3.1
 of PHP. Almost nothing works like it should since I have moved my site
from
 my local server (4.3.1 on Win2000) to my ISP (4.1.1 on SunOS 5.7).

 I just started to dump my four $_SESSION-variables on top of every page,
 and to my big suprise they changes all the time.

 At login is store the users userid in $_SESSION['u_id']. At later times,
 I'm working with $_POST['u_id'] when for example changing administrators
 for different parts of the site. When I'm doing this, also
 $_SESSION['u_id'] changes.

 And at my localhost, $_SESSION's stays put.

 I'm going crazy here.

 --
 anders thoresson



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



[PHP] Re: differences in session handling between 4.1.1 and 4.3.1

2003-06-28 Thread Tularis
I would also advise to check for register_globals, since I have the 
faint feeling it was OFF on your old version and ON in your new (though 
most logcial would be viceversa :P)

Bobby Patel wrote:
maybe compare the php settings for both servers (using  phpinfo()). Also
check the register globals setting.  I know this might not be a big help,
but it's a start.
good luck

Bobby
Anders Thoresson [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Are there any big differences in session handling between 4.1.1 and 4.3.1
of PHP. Almost nothing works like it should since I have moved my site
from

my local server (4.3.1 on Win2000) to my ISP (4.1.1 on SunOS 5.7).

I just started to dump my four $_SESSION-variables on top of every page,
and to my big suprise they changes all the time.
At login is store the users userid in $_SESSION['u_id']. At later times,
I'm working with $_POST['u_id'] when for example changing administrators
for different parts of the site. When I'm doing this, also
$_SESSION['u_id'] changes.
And at my localhost, $_SESSION's stays put.

I'm going crazy here.

--
anders thoresson





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


Re: [PHP] Re: differences in session handling between 4.1.1 and 4.3.1

2003-06-28 Thread anders thoresson
I would also advise to check for register_globals, since I have the faint 
feeling it was OFF on your old version and ON in your new (though most 
logcial would be viceversa :P)
register_globals are on in 4.1.1 and off in 4.3.1. So, your faint feeling 
was wrong (which I'm sorry for, cause any feeling that helps me, no matter 
how faint, are wanted. I'm going crazy here. ;-))

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