[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread J Smith


Are you using the just-released PHP 4.2.0? A problem has been found with the 
sessions extension; it should be fixed soon, likely via a patch.

J


Scott Fletcher wrote:

 Hi!  I have the PHPSESSID working on every web page except one and it
 baffle
 me.  Have anyone have this problem before?  Anyone know of a way around
 the problem?
 
 Here is what happen.  On the HTML post, I use the Post String,
 
 -- clip --
 form NAME=Inquiry_Form
 ACTION='network_option_transunion.php??=$SID?type=?=$type?'
 METHOD=POST
 -- clip --
 
 Then on the next page, after executing hte post by clicking hte submit
 button.  The next page failed to show the PHPSESSID on screen.  But at the
 top of the browser's window where hte url address and stuffs are located.
 It said,
 
 --clip--
 
 
https://test.ecbi.com/transunion/network_option_transunion.php?PHPSESSID=ACD
 2BF215C0513AADDDC70AAC598EE3Etype=credit
 
 --clip--
 
 But when I use the php echo, it spit out nothing.  What I don't understand
 is that it work on many other web pages except just this one webpage.
 Anyone know why?
 
 THanks,
  Scott


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




[PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Julio Nobrega Trabalhando

  Insn't inside a function, therefore confliting with the scope? Or maybe
you have to use $_GET['PHPSESSID']?

  Also, on your form tag, I didn't see the PHPSESSID part. Also, it's a
good idea to use double quotes for html element properties, amp; instead of
, and always echo the var instead of the short form ?=.

  Try a few variations:

// With double quotes, amp; and ?php echo
ACTION=network_option_transunion.php?PHPSESSID=?php echo $PHPSESSID;
?amp;type=?php echo $type; ?

// With session_id() instead of $PHPSESSID or $SID
ACTION=network_option_transunion.php?PHPSESSID=?php echo session_id();
?amp;type=?php echo $type; ?

// At the last part of the url
ACTION=network_option_transunion.php?type=?php echo $type;
?amp;PHPSESSID=?php echo session_id(); ?



--

Julio Nobrega.

Um dia eu chego lá:
http://sourceforge.net/projects/toca

Ajudei? Salvei? Que tal um presentinho?
http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884


Scott Fletcher [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
 Hi!  I have the PHPSESSID working on every web page except one and it
baffle
 me.  Have anyone have this problem before?  Anyone know of a way around
the
 problem?

 Here is what happen.  On the HTML post, I use the Post String,

 -- clip --
 form NAME=Inquiry_Form
 ACTION='network_option_transunion.php??=$SID?type=?=$type?'
 METHOD=POST
 -- clip --

 Then on the next page, after executing hte post by clicking hte submit
 button.  The next page failed to show the PHPSESSID on screen.  But at the
 top of the browser's window where hte url address and stuffs are located.
 It said,

 --clip--


https://test.ecbi.com/transunion/network_option_transunion.php?PHPSESSID=ACD
 2BF215C0513AADDDC70AAC598EE3Etype=credit

 --clip--

 But when I use the php echo, it spit out nothing.  What I don't understand
 is that it work on many other web pages except just this one webpage.
 Anyone know why?

 THanks,
  Scott





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




Re: [PHP] Re: What's wrong with the PHPSESSID?????

2002-04-23 Thread Alexander Skwar

»Julio Nobrega Trabalhando« sagte am 2002-04-23 um 16:59:18 -0300 :
   Also, on your form tag, I didn't see the PHPSESSID part. Also, it's a

Do a echo SID.  SID contains both the session_name() and the
session_id() suitable for inclusion in a GET request.

 good idea to use double quotes for html element properties, amp; instead of
 , and always echo the var instead of the short form ?=.

Yes, that's true.

 // With session_id() instead of $PHPSESSID or $SID

$SID will for sure be empty, but the constant SID not.

Alexander Skwar
-- 
How to quote:   http://learn.to/quote (german) http://quote.6x.to (english)
Homepage:   http://www.iso-top.de  |Jabber: [EMAIL PROTECTED]
   iso-top.de - Die günstige Art an Linux Distributionen zu kommen
   Uptime: 15 hours 4 minutes

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