Forum Moderators: open
My question is, what happens to googlebot and other spiders when they come snatch my pages? Do they get the normal url or do they see the url with the session id's?
They seem to cause no problems with indexing that I can make out, this is in my particular case.
<added>JeremyL straightened me out ;)
[edited by: jatar_k at 12:20 am (utc) on Mar. 12, 2003]
I can say that our site uses transparent session ids and googlebot doesn't seem to see them, or at least knows enough to drop them from the url in the index.
Are you talking about your site in your profile? I checked and verified your site only uses session cookies and not normal cookies and if I turn my cookies off I cannot get a session from your site. But whats different is with my code if no session cookie is allowed the sid is put in the url automatically. With yours, even with cookies off the sid never goes to the url. May I ask how this was done? Do you have the "use cookies only" set in php.ini or did you find a local way of doing this? I can't touch the php.ini so I was wondering if there was another way to do what you did.
Thanks
We have it set so
session.use_cookie = 1
session.use_trans_sid = 1
no entry for session.use_only_cookies
so it explicitly sets cookie only, keeps the id out of the url, interesting.
If the session is absolutely necessary then you would not be able to use this method.
session.use_cookie = 1
Tells php to use cookies WHEN availible
session.use_trans_sid = 1
Tells it TO add the SID to the url if no cookie is availible. Are you sure yours isn't set to 0? It acts like it is.
And if you have session.use_only_cookies = 0 or no entry for it, then you should have the SID put in url if the other above 2 are true.
The main one here is session.use_trans_sid. if that is set to one, that is where php tells itself to take all your href's and add the sid to the url.
I couldn't find a local alternative to the php.ini way so I just set session.use_trans_sid = 0 and the url sid's went away.