Reply to Re: Session Id In URL

Your name:

Reply:


Posted by J.O. Aho on 12/17/06 16:49

MS wrote:
> I am using Sessions which are working fine... except that on the
> first/second page loaded the session id is in the URL and therefore the URL
> is being indexed, by search engines, with the Session Id.
>
> Is there a way to stop the session Id from being part of the URL?

You can choose between using cookies or url-encoded, in your php.ini set

session.use_cookies = 1

or use the ini_set() on each script and set the session.use_cookies to 1.

Depending on your script (not sure if you written it yourself or not), it may
still set the URL-session, if so, you can modify the SID constant, either
remove it or redefine it to an empty string.



> Stopping the Session Id being recorded by Search Engines?

You can add the

<meta name="Robots" content="index,nofollow">

in the html header and hope that the robots will honor your wishes.


--

//Aho

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация