$_SESSION['home']
Moderator: General Moderators
$_SESSION['home']
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"... 
- phdatabase
- Forum Commoner
- Posts: 83
- Joined: Fri May 28, 2010 10:02 am
- Location: Fort Myers, FL
Re: $_SESSION['home']
Not that I'm aware of.
Re: $_SESSION['home']
actually, I narrowed the error down:
If I have:it works fine. But if I have
then print_r($_SESSION); returns "Array([saltine]=>"aslkdjf@#$@#$lkjfd /username")"
which I don't understand.
edit: $data['saltine'] is just 50 random characters.
If I have:
Code: Select all
$_SESSION['home'] = "/$u";
$_SESSION['saltine'] = $data['saltine'];Code: Select all
$_SESSION['saltine'] = $data['saltine'];
$_SESSION['home'] = "/$u";which I don't understand.
edit: $data['saltine'] is just 50 random characters.
- phdatabase
- Forum Commoner
- Posts: 83
- Joined: Fri May 28, 2010 10:02 am
- Location: Fort Myers, FL
Re: $_SESSION['home']
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?
Have you echoed the $data['satine'] so you know exactly what's in it?