Hi Robert, The initial links have session id's appended since upon the very first entry into the site, no PHPSESSION cookie is available. PHP appends the session id in the event no cookies are available- it doesn't know yet whether you have cookies on or not.
If you want to forcefully remove this PHPSESSION (which is sometimes a good idea since search engine spiders will catalog the links with the session id if you don't remove it), try this: ini_set("session.use_only_cookies","1"); James >-----Original Message----- >From: Robert Winter [mailto:[EMAIL PROTECTED] >Sent: Thursday, June 10, 2004 4:51 PM >To: [EMAIL PROTECTED] >Subject: [PHP] session.use_trans_sid = 0 does not work!!! > > >Hi. My www provider has set session.use_trans_sid default to ON. >I tried changing it in .htaccess or in the .php before session_start() but >relative links are always renamed to xxx?PHPSESSION=.... > >I'm also printing the value of session_use_trans_sid with ini_get and it >always returns 1 ("on")! >I don't know if this is important but I have a RewriteRule to parse HTM as >PHP so, my links are always xxx.htm and never xxx.php. > >What it's happening? > >I noticed that this happens only in the welcome page. The following pages >never (nor the welcome page if I refresh) include the ?PHPSESSION= (maybe >because it detects the browser has cookies enabled). > >Thanks >Robert > >-- >PHP General Mailing List (http://www.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php