Page 1 of 1

$_SESSION['home']

Posted: Fri Jun 04, 2010 12:25 pm
by Chalks
Does $_SESSION['home'] have some special significance that I don't know about? My session won't keep track of it if it's named "home"... :banghead:

Re: $_SESSION['home']

Posted: Fri Jun 04, 2010 12:28 pm
by phdatabase
Not that I'm aware of.

Re: $_SESSION['home']

Posted: Fri Jun 04, 2010 12:31 pm
by Chalks
actually, I narrowed the error down:

If I have:

Code: Select all

$_SESSION['home'] = "/$u";
$_SESSION['saltine'] = $data['saltine'];
it works fine. But if I have

Code: Select all

$_SESSION['saltine'] = $data['saltine'];
$_SESSION['home'] = "/$u";
then print_r($_SESSION); returns "Array([saltine]=>"aslkdjf@#$@#$lkjfd /username")"

which I don't understand.


edit: $data['saltine'] is just 50 random characters.

Re: $_SESSION['home']

Posted: Fri Jun 04, 2010 1:13 pm
by phdatabase
It appears that $data['saltine'] is somehow closing the array syntax. I would check it for extraneous characters, perhaps ')' or a missing quote or an extra one. Since it works one way and not the other, the error must be in the saltine line.

Have you echoed the $data['satine'] so you know exactly what's in it?