RE: [PHP] RE: Sessions and switching between php and htm documents
| From: | Dave | Date: | Wed, 27 Feb 2002 13:10:31 +0000 |
| Subject: | RE: [PHP] RE: Sessions and switching between php and htm documents | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-86403@lists.php.net to get a copy of this message | ||
Not passing via URL currently... using track_vars
Dave
>-----Original Message-----
>From: Tim Ward [mailto:Tim.ward@stivesdirect.com]
>Sent: Wednesday, February 27, 2002 4:16 AM
>To: php-general@lists.php.net; Dave
>Subject: [PHP] RE: Sessions and switching between php and htm documents
>
>
>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
>
>
>--
>PHP General Mailing List (http://www.php.net/)
>To unsubscribe, visit: http://www.php.net/unsub.php
>
>