HighDots Forums  

SessionID being added to end of url. why?

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss SessionID being added to end of url. why? in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
megajam02
 
Posts: n/a

Default SessionID being added to end of url. why? - 08-01-2004 , 05:17 PM






I recently designed a new site for my company, and hope to go live this evening
.. Today I noticed that when accessing my index.php page, that every for some
reason, the php session id is being appended to the end of my url. I am aware
of the appendsid function in php, but I'm not using it on this page.

Even more off than that, is that if I click on one of the links, then return
to the index page, the sid is NOT appended to the urls.
Anyone have any idea why? Also, I've heard that if you have sids on your urls,
spiders like Goole will not spider your site..

Thanks,
Chris


Reply With Quote
  #2  
Old   
Ross Riley
 
Posts: n/a

Default Re: SessionID being added to end of url. why? - 08-01-2004 , 06:37 PM






there's an option in the php.ini file called session.trans-id.
If this is set to on then where cookies are not enabled the session id is
appended to the url.
PHP cannot test whether cookies are enabled until after the first page has
loaded so if this option is on then the id will automatically be added to the
first page. After that cookies, if they are enabled, will take over.

As for search engines. They can't log into your page or send any form
information, but most are perfectly capable of traversing dynamic sites.

Ross


Reply With Quote
  #3  
Old   
megajam02
 
Posts: n/a

Default Re: SessionID being added to end of url. why? - 08-01-2004 , 10:27 PM



Thanks Ross,
That sums it up quite nicely. Now, I'm going to show my green-ness here and
ask another question. The php.ini file that you mentioned - where is it
located. I haven't built one. Is it generated by DW?

Thanks for the response.

Chris


Reply With Quote
  #4  
Old   
Ross Riley
 
Posts: n/a

Default Re: SessionID being added to end of url. why? - 08-02-2004 , 02:03 AM



The php.ini file is part of the php installation. It depends whether you're
running your own server or using a host.
If it's your own server then you can edit the file directly. If you're using a
host then usually they will provide a control panel to allow you to make
changes to your php settings. It's best to ask them how to do this.

Additionally if you run a file with the command....
phpinfo();
then this will output all the php settings for you to look through....

Ross


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.