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="post"><input 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

Reply via email to