RE: [PHP] Sessions and switching between php and htm documents

From: Date: Wed, 27 Feb 2002 04:49:27 +0000
Subject: RE: [PHP] Sessions and switching between php and htm documents
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86363@lists.php.net to get a copy of this message
Not HP!!! HTML!!! ( I HATE Outlook's spellchecker sometimes.) =C= * * Cal Evans * Journeyman Programmer * Techno-Mage * http://www.calevans.com * -----Original Message----- From: Cal Evans [mailto:cal@calevans.com] Sent: Tuesday, February 26, 2002 10:46 PM To: Dave; php-general@lists.php.net Subject: RE: [PHP] Sessions and switching between php and htm documents 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 an HTML, 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:dave@hawk-systems.com] Sent: Tuesday, February 26, 2002 10:37 PM To: php-general@lists.php.net 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

« previous php.general (#86363) next »