HateEternal
Mac Metal Head
I am having a weird session variable problem when I upload my code to my web server. It works fine on my personal linux test box which has an older version of php on it, but when it goes up it acts goofy and I dont understand why.
If i do this:
session_start();
$user = 'blah';
$pwd = 'xxxx';
$host = 'xcfsdf';
$db = 'sdfdff';
echo $_SESSION['user'];
it echos blah, or whatever the value of $user is.
$_session['user'] is initialized in a different page, it works if i echo it before setting $user so the session is working.
Did they change something since 4.2.2? If they did that is a stupid change.
If i do this:
session_start();
$user = 'blah';
$pwd = 'xxxx';
$host = 'xcfsdf';
$db = 'sdfdff';
echo $_SESSION['user'];
it echos blah, or whatever the value of $user is.
$_session['user'] is initialized in a different page, it works if i echo it before setting $user so the session is working.
Did they change something since 4.2.2? If they did that is a stupid change.