Re: [PHP] BUG with session trans sid ?

2002-11-13 Thread Ernest E Vogelsinger
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




Re: [PHP] BUG with session trans sid ?

2002-11-13 Thread Michael Sims
On Thu, 14 Nov 2002 01:58:49 +0200, you wrote:

>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);
[snip]
>TRANS SID feature doesnt working, but constant SID set
>correctly (PHPSESSID=...). If I write SID in links and forms
>manually, all works fine.

I know there are some INI settings that cannot be changed via
ini_set...for example, magic_quotes_* cannot be changed because the
data has already been processed by the time the call to ini_set is
made.  I'm not certain, but I think trans_sid might be another one of
those settings.

Does your server support .htaccess files?  If so, try creating an
.htaccess file with the following:

php_flag session.use_trans_sid on

I may be way off base here, but it's worth a shot...

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




Re: [PHP] BUG with session trans sid ?

2002-11-13 Thread Justin French
Did you compile with --enable_trans_sid???  Check by reading 

Justin


on 14/11/02 9:58 AM, Victor Soroka ([EMAIL PROTECTED]) wrote:

> 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.
> 
> 

Justin French

Creative Director
http://Indent.com.au
Web Developent & 
Graphic Design



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




[PHP] BUG with session trans sid ?

2002-11-13 Thread Victor Soroka
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.



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