session cookies seem to be unavailable

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
toro
Forum Newbie
Posts: 10
Joined: Wed Jul 03, 2002 8:03 am
Location: Iceland

session cookies seem to be unavailable

Post 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?
[]InTeR[]
Forum Regular
Posts: 416
Joined: Thu Apr 24, 2003 6:51 am
Location: The Netherlands

Post 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
User avatar
toro
Forum Newbie
Posts: 10
Joined: Wed Jul 03, 2002 8:03 am
Location: Iceland

Post by toro »

I'm using PHP 4.2.0 so that shouldn't be a problem.
Post Reply