[PHP] ob_start and transparent sessions 4.3.2

2003-08-26 Thread Miek Lohmann
Hi,

I've got a strange problem with enabled transparent sessions for my scripts.
Before upgrading to PHP 4.3.2 I could use output buffering (ob_start()) and
sessions without problems. Meanwhile with this new version the PHPSESSID is
NOT appended to any link like html - tag (a href or something like that).

I found a solution by writing my own session-handling and using regular
expressions to append the session-id to any link, after outputting the
content of the buffer, but this is not a really good solution, I think.

(Btw. session.use_trans_id is on ;))

Has someone found a solution or has had an equal problem with 4.3.2?



Thanks.

Mike


Mike Lohmann

[werk01]




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



RE: [PHP] ob_start and transparent sessions 4.3.2

2003-08-26 Thread Wouter van Vliet
Hi,

I too am running PHP4.3.2 and never took any notice about the session id's
being appended and stuff .. after reading your message I got a little
alarmed, since I'm also using output buffering. So, I turned off my cookies,
restarted my browser and saw that indeed no session id's were appended. Now,
when I checked php.ini, the value appeared to be '0'. That was quite an
explanation. I changed it to '1' and it all worked.

Maybe this makes your problem a little weirder.. But the problem is not on
the PHP version. You might want to check if session.use_trans_sid is really
set to 'On'. If it is, try changing it to '1', restart apache and see if it
works now. Also, check if your cookies are turned off, since with them
turned on, there's no need for php to add the session ID and thus it won't
happen.

Wouter

 - -Oorspronkelijk bericht-
 - Van: Miek Lohmann [mailto:[EMAIL PROTECTED]
 - Verzonden: vrijdag 22 augustus 2003 18:41
 - Aan: [EMAIL PROTECTED]
 - Onderwerp: [PHP] ob_start and transparent sessions 4.3.2
 -
 -
 - Hi,
 -
 - I've got a strange problem with enabled transparent sessions
 - for my scripts.
 - Before upgrading to PHP 4.3.2 I could use output buffering
 - (ob_start()) and
 - sessions without problems. Meanwhile with this new version the
 - PHPSESSID is
 - NOT appended to any link like html - tag (a href or something
 - like that).
 -
 - I found a solution by writing my own session-handling and using regular
 - expressions to append the session-id to any link, after outputting the
 - content of the buffer, but this is not a really good solution, I think.
 -
 - (Btw. session.use_trans_id is on ;))
 -
 - Has someone found a solution or has had an equal problem with 4.3.2?
 -
 -
 -
 - Thanks.
 -
 - Mike
 -
 -
 - Mike Lohmann
 -
 - [werk01]
 -
 -
 -
 -
 - --
 - PHP General Mailing List (http://www.php.net/)
 - To unsubscribe, visit: http://www.php.net/unsub.php

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