Welcome to WebmasterWorld Guest from 54.227.110.209

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Question

Question For PHP Pros

     

mosley700

5:18 am on Sep 29, 2002 (gmt 0)

10+ Year Member


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

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

WebmasterWorld Senior Member 10+ Year Member



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

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

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

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

WebmasterWorld Administrator jatar_k is a WebmasterWorld Top Contributor of All Time 10+ Year Member



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

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

WebmasterWorld Senior Member 10+ Year Member



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

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

WebmasterWorld Senior Member lorax is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



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

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

10+ Year Member



Thank you all for your help.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month