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/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php