Re: BUG with session trans sid ?

From: Date: Thu, 14 Nov 2002 01:00:58 +0000
Subject: Re: BUG with session trans sid ?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-124356@lists.php.net to get a copy of this message
At 00:58 14.11.2002, Victor Soroka said: --------------------[snip]-------------------- >I have tried to disable cookies and got strange behavior of PHP 4.0.6. > >So, I use php4.0.6 in default redhat installation. My code: > >ini_set('session.use_cookies', FALSE); >ini_set('session.use_trans_sid', TRUE); >ini_set('session.save_handler', 'user'); > >Then I set my own session handlers and start session. > >session_set_save_handler("FJ_S_open", "FJ_S_close", "FJ_S_read", >"FJ_S_write", "FJ_S_destroy", "FJ_S_gc"); >session_start(); > >TRANS SID feature doesnt working, but constant SID set >correctly (PHPSESSID=...). If I write SID in links and forms >manually, all works fine. --------------------[snip]-------------------- It is a known issue that trans_sid doesn't work when you do output buffering with ob_gzhandler. If you want to use trans_sid you can do output buffering, but cannot use the compressor. The reason is that PHP merges the SID into the URIs _after_ the buffer callback has been executed. -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#124356) next »