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

2002-02-27 Thread Dave

Not passing via URL currently...  using track_vars

Dave

>-Original Message-
>From: Tim Ward [mailto:[EMAIL PROTECTED]]
>Sent: Wednesday, February 27, 2002 4:16 AM
>To: [EMAIL PROTECTED]; 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:[EMAIL PROTECTED]]
>   Sent:  27 February 2002 04:37
>   To:  [EMAIL PROTECTED]
>   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
>
>

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




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

2002-02-27 Thread Tim Ward

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  

--
From:  Dave [SMTP:[EMAIL PROTECTED]]
Sent:  27 February 2002 04:37
To:  [EMAIL PROTECTED]
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