homepage Welcome to WebmasterWorld Guest from 54.234.228.64
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHP Question
Question For PHP Pros
mosley700




msg:1296361
 5:18 am on Sep 29, 2002 (gmt 0)
I recently moved my site to a new hosting location.
Since the move something has changed. When I go to my site the address gets a tracking code, e.g., instead of http://www.myfakedomain.com/ the URL reads http://www.myfakedomain.com/?PHPSESSID=465eaf92c42df5048e7aae9348b8ea49

I don't like the long tracking code on the end.
My site development people say the hosting company's servers are generating the tracking code, and my hosting company says it's my site development company's programming.

Please educate me. Whose fault is it, and what do I need to do to get it removed?

 

dingman




msg:1296362
 7:27 am on Sep 29, 2002 (gmt 0)

Looks like the site is using PHP's session tracking. It defaults to using cookies unless cookies are turned off in the browser, in which case it reverts to URL re-writing. Try turning cookies on in your browser and checking again - I bet that the?PHPSESSID=yaddayadda will be gone.

PHP session tracking has to be turned on in the script that uses it - it doesn't just "happen" by itself.

Doesn't this thread belong in "Perl & PHP CGI scripting"?

lorax




msg:1296363
 5:22 pm on Sep 29, 2002 (gmt 0)

Mosley700,

session.use_only_cookies specifies whether the module will only use cookies to store the session id on the client side. Defaults to 0 (disabled, for backward compatibility). Enabling this setting prevents attacks involved passing session ids in URLs. This setting was added in PHP 4.3.0.

From: [php.net...]

GB

jatar_k




msg:1296364
 5:29 pm on Sep 29, 2002 (gmt 0)

This is the second time that content from the php.net site has referenced php 4.3.0.

It isn't released, most recent version is 4.2.3.

I would say ask the designers/coders first, they can point you in the right direction.

andreasfriedrich




msg:1296365
 5:31 pm on Sep 29, 2002 (gmt 0)

This setting was added in PHP 4.3.0

Then it wonīt help much, since I havenīt seen a server running PHP 4.3. The latest release that is available for download is 4.2.3.

lorax




msg:1296366
 5:34 pm on Sep 29, 2002 (gmt 0)

Good catch Jatar_K,
I didn't see that. Here's the one that works with the current version.

session.use_trans_sid

From: [php.net...]

mosley700




msg:1296367
 8:18 pm on Sep 29, 2002 (gmt 0)

Thank you all for your help.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved