Re: [PHP] session var problems

2004-04-18 Thread Daniel Clark
Do yo have have start_session() on every page to before you can read session variables?

>>Dear list,
>>I am trying to set a simple session variable on PageA.
>>
>>$_SESSION['CategoryID'] = intval($Data['ID']);
>>
>>if I print after setting the value on PageA, I will
>>get the expected ID number.
>>
>>go on to PageB and $_SESSION['CategoryID'] is '0'.
>>
>>If I hard code in a value for $_SESSION['CategoryID']
>>on PageA, it prints correctly on PageB.  
>>
>>If I set $Test = 462 and then 
>>$_SESSION['CategoryID'] = intval($Test);
>>on PageA, it prints correctly on PageB.
>>
>>Does anyone have any ideas?
>>
>>Kathleen

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



[PHP] session var problems

2004-04-18 Thread Kathleen Ballard
Dear list,
I am trying to set a simple session variable on PageA.

$_SESSION['CategoryID'] = intval($Data['ID']);

if I print after setting the value on PageA, I will
get the expected ID number.

go on to PageB and $_SESSION['CategoryID'] is '0'.

If I hard code in a value for $_SESSION['CategoryID']
on PageA, it prints correctly on PageB.  

If I set $Test = 462 and then 
$_SESSION['CategoryID'] = intval($Test);
on PageA, it prints correctly on PageB.

Does anyone have any ideas?

Kathleen

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