Welcome to WebmasterWorld Guest from 54.198.200.120

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Question

Question For PHP Pros

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

Preferred Member

10+ Year Member

joined:Sept 23, 2002
posts:366
votes: 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?

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Sept 12, 2002
posts:885
votes: 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"?

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

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 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

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

Administrator

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

joined:July 24, 2001
posts:15755
votes: 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.

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

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:July 22, 2002
posts:1782
votes: 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.

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

Senior Member from US 

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

joined:Mar 31, 2002
posts:7575
votes: 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...]

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

Preferred Member

10+ Year Member

joined:Sept 23, 2002
posts:366
votes: 0


Thank you all for your help.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members