Session ID's in your url

TheWebJunkie

Adherent
Joined
Feb 21, 2005
Messages
342
Hey all another problem with my site, someone told me this

"but session ID's in your URL's is going to kill your SERPS!"

Could someone explain what they are talking about, and could anyone help me fix it ?
 

MGM

vBulletin Guru
Joined
Jan 29, 2005
Messages
3,457
I'm not exactly sure what he means by SERPS but session ID's in the URL hurt your page rank and what-not for search engines.

The way I fixed it is by adding a hidden form in the page after the user logged in:

HTML:
<input type='hidden' name='SID' value='<?= session_id(); ?>' />

Then, on each page after that (after starting the session), I would put this at the top:

HTML:
$_REQUEST['SID'];

That should do it without the need to put it in your URL.

MGM out
 

MGM

vBulletin Guru
Joined
Jan 29, 2005
Messages
3,457
I dont believe he mentioned vBulletin or phpBB at all :p I think he meant a custom CMS he was working on.

MGM out
 

quentin

Habitué
Joined
Feb 11, 2004
Messages
1,989
do you need session for guests ?
if not, i'd recommend only creating sessions for logged in users. This way you're sure robots don't get them in the way.
 

MGM

vBulletin Guru
Joined
Jan 29, 2005
Messages
3,457
Clasione said:
definition: SERPS - S earch E ngine R esult P ages :tup:
Ahh alright, thanks for the info!

MGM out
 

agiacosa

Adherent
Joined
Nov 29, 2004
Messages
402
I looked at my home page (VBA CMPS) with Lynx and saw the Latest Forum Threads had session IDs in the URL. I'm working to strip them now with mod-rewrite.
 

Kevin

Oooh, something shiny!
Joined
Jul 13, 2004
Messages
3,451
agiacosa said:
I looked at my home page (VBA CMPS) with Lynx and saw the Latest Forum Threads had session IDs in the URL. I'm working to strip them now with mod-rewrite.
Were you logged in or out at the time?
 

SaN-DeeP

TechArena.IN
Joined
Jun 30, 2004
Messages
4,293
I have not yet came across session ids with vbulletin 3.0.7 on our forums.
 
Top