#18752 [Opn->Csd]: PHP stops embeding the session id into URLs after calling virtual() :-(

From: Date: Wed, 25 Sep 2002 11:49:02 +0000
Subject: #18752 [Opn->Csd]: PHP stops embeding the session id into URLs after calling virtual() :-(
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-20286@lists.php.net to get a copy of this message
ID: 18752 Updated by: sas@php.net Reported By: evgen@unicon.ru -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] evgen@unicon.ru 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

« previous php.bugs (#20286) next »