RE: Sessions and switching between php and htm documents
| From: | Tim Ward | Date: | Wed, 27 Feb 2002 09:15:35 +0000 |
| Subject: | RE: Sessions and switching between php and htm documents | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-86385@lists.php.net to get a copy of this message | ||
I haven't experienced this myself, but I'd have thought that if you're
propagating the session via the URL rather than a cookie then it won't get
added if the page isn't parsed. If it's not passed on just once it's lost.
Tim Ward
Internet chess www.chessish.com <http://www.chessish.com>
----------
From: Dave [SMTP:dave@hawk-systems.com]
Sent: 27 February 2002 04:37
To: php-general@lists.php.net
Subject: 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