ID:               18752
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Session related
 Operating System: FeeBSD 4.6.1-release-p8
 PHP Version:      4.2.2
 New Comment:

There is no way to avoid this. Evaluate whether you actually need to
use virtual.  You could also do a readfile("http://server/page";); ..

>From php.net/virtual: " To run the sub-request, all buffers are
terminated and flushed to the browser, pending headers are sent too."



Previous Comments:
------------------------------------------------------------------------

[2002-08-06 07:14:44] [EMAIL PROTECTED]

PHP stops embeding the session id into URLs after calling virtual().

Example (switch off your cookies):
--------------------------------------
session_start();
session_register('count');
$count++;
echo $count."<br>";

<A HREF="example.php">link 1</A>
<?virtual("/virtual.html");?>    
<A HREF="example.php">link 2</A>
---------------------------------------

First link will be example.php?PHPSESSID=7a85d47f8d5e7c96c579
but second link will be only example.php

If you comment virtual("/virtual.html") everithing will go on fine.


------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=18752&edit=1

Reply via email to