AW: [PHP-DB] strange behavior

2002-09-12 Thread Thomas Lamy

Hi,
this isn't essantially DB-related
It's a feature called transparent session id (activated at compile time with
--enable-trans-sid). No need for ?=session_name().'='.session_id()? in
most cases, as it is automatically added by PHP. And for the few times PHP
can not add session information, you may use the SID define, which is
automatically defined to session_name().session_id() if the user has turned
off cookies.

Read: http://php.net/session

Thomas

 -Ursprüngliche Nachricht-
 Von: Martin Adler [mailto:[EMAIL PROTECTED]]
 Gesendet: Donnerstag, 12. September 2002 14:34
 An: [EMAIL PROTECTED]
 Betreff: [PHP-DB] strange behavior
 
 
 Hi,
 
 i start a session on a entrypage with a form,
 and i wonder about the output to the browser.
 There appeared a input-field of the type hidden
 with the session-name as name and the
 session-id as value.
 How can I switch this PHP-behavior off?
 
 CODE
 td
   form name=focusedform
 action=index.php??=session_name().'='.session_id()? method=post
   input type=text name=auth_username size=22 maxlength=15
 /td
 
 
 OUTPUT
 ...
 td
   form name=focusedform
 action=index.php?PHPSESSID=5ac37e23f46a3c2c1388201e3f4a951f
 method=postinput type=hidden name=PHPSESSID
 value=5ac37e23f46a3c2c1388201e3f4a951f /
   input type=text name=auth_username size=22 
 maxlength=15
 /td
 ...
 
 
 greet
 Martin
 
 
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

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




RE: [PHP-DB] strange behavior

2002-09-12 Thread Aaron Wolski

Hi There,

I don't know if this is the actual problem.. But in your form action it
looks off.


  action=index.php??=session_name().'='.session_id()?

Would produce something that looks like: index.php?123455667784332

What I think you WANT to do is...

action=index.php?SID=?=session_name().'='.session_id()?


When I need to put php code into a url (form or link) such as a
$rerturn_url I usual do something like:

form action=index.php?type_index=?php echo $type_index; ?
method=post

This would produce a url like: index.php?type_index=3 (assuming the type
index selected was indeed 3) but you should understand what I mean.

Don't know if this helps you at all but figured I'd take a shot.

Regards,

Aaron


-Original Message-
From: Martin Adler [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, September 12, 2002 8:34 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] strange behavior


Hi,

i start a session on a entrypage with a form,
and i wonder about the output to the browser.
There appeared a input-field of the type hidden
with the session-name as name and the
session-id as value.
How can I switch this PHP-behavior off?

CODE
td
  form name=focusedform
action=index.php??=session_name().'='.session_id()? method=post
  input type=text name=auth_username size=22 maxlength=15
/td


OUTPUT
...
td
  form name=focusedform
action=index.php?PHPSESSID=5ac37e23f46a3c2c1388201e3f4a951f
method=postinput type=hidden name=PHPSESSID
value=5ac37e23f46a3c2c1388201e3f4a951f /
  input type=text name=auth_username size=22 maxlength=15
/td
...


greet
Martin




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


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