Page 1 of 1

session cookies seem to be unavailable

Posted: Thu May 01, 2003 7:29 am
by toro
I'm coding a simple CMS on my local Win2000 machine and for some reason sessions are always displayed in the URL (PHPSESSID=...).

This doesn't cause problems per se, but I'd prefer to have the session id contained in cookies. (If only for a more clean URL).

My php.ini has both

session.use_cookies = 1
and
session.use_trans_sid = 1
(basically unchanged from the original php.ini except for session.save_path = "c:/apacheroot/tmp")

It's my understanding that this way the server should use cookies if possible and then URL as second choice?

This doesn't seem to be a browser based problem as this behaviour occurs both in my IE6 and Opera6 - and neither should be turning down offered cookies.

Any suggestions?

Posted: Thu May 01, 2003 7:33 am
by []InTeR[]
The only thing i could find is:
Note: For PHP 4.1.2 or less, it is enabled by compiling with --enable-trans-sid. From PHP 4.2.0, trans-sid feature is always compiled
from php.net

Posted: Thu May 01, 2003 10:17 am
by toro
I'm using PHP 4.2.0 so that shouldn't be a problem.