Did you test and make sure the variable is set? login.php session_start(); $HTTP_SESSION_VARS["username"]=$formUserName; echo $HTTP_SESSION_VARS["username"] header("Location: displaypage.htm");
Also, for grins ang giggles, make the middle page in the chain a HP, start the session and test for the variable. If it does not work then the problem is not the middle page being html. =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: Dave [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 26, 2002 10:37 PM To: [EMAIL PROTECTED] Subject: [PHP] Sessions and switching between php and htm documents login.htm form submits information login.php session_start(); $HTTP_SESSION_VARS["username"]=$formUserName; header("Location: displaypage.htm"); displaypage.htm show some static stuff links to formpage.htm formpage.htm form submits information to form.php form.php session_start(); echo $HTTP_SESSION_VARS["username"]; <- has no value Does the chain of pages have to be continually PHP pages to allow the transition of the session variables? if not, any ideas on why we are losing session variables? Dave -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php