Hi,
As Nick said, session is a more "sure" way to save variables.
Back to your question, you can actually create more than one cookie, one cookie to save the user_id, one cookie to save firstname. Then when you need it, you just all firstname from the script.
Using session, you can use session_register() to register more than one variable
More info about session:http://www.php.net/manual/en/ref.session.php.
Another way I can think of is to actually use database to store all your data, including user_id and firstname. When you have found out the user_id, you just use that as a parameter to check out the firstname in the database.
(I'm using mySQL, in this case, I will use
$firstname=mysql_query ("SELECT firstname FROM mytable where user_id=$user_id")😉
Hope this helps.
Laura Brandt
Aletia Hosting - Full-Featured, Superfast Web Hosting
PHP, MySQL, Perl, Multiple domain support and more.
200MB + 10GB Transfer at $9.95/mth
http://AletiaHosting.com - AIM: AletiaSales