Welcome to WebmasterWorld Guest from

Forum Moderators: open

Message Too Old, No Replies

Session ID's in URL or Cookies

Cookie or URL SIDs

2:09 pm on Oct 23, 2009 (gmt 0)

New User

10+ Year Member

joined:Sept 25, 2008
posts: 23
votes: 0

A site requires session IDs and currently sets them via URLs which prevents a batch of URL re-writes working optimally.

Rewritten URLs are served for spiders and visitors allowing cookies, however for new visitors and unidentified spiders URL containing unique SID's are served.

The site uses URLs to set SID’s in order to support a check out that remains functional without cookies and JS enabled, however serving SIDs in this way is impacting on site SEO.

With a view of moving away from setting SID’s in URLs, one alternative is to set the Session IDs via cookies and forgo the support for a cookieless shopping cart.

I am trying to get figures/ advice on moving to a cookie based method of setting session ID’s and potential impact on sales it may have.

My feelings are that:
•Anyone savvy enough to shop online is savvy enough to use a browser that supports cookies.
•Anyone savvy enough to turn cookies off, could turn them on again for check out

Look forward to your thoughts

11:09 am on Oct 26, 2009 (gmt 0)

Full Member

10+ Year Member

joined:Jan 4, 2007
votes: 0

One possibility is a cookie check redirect on entry to the site.

If there is no sid present on a page request then serve a cookie with a new sid in it and redirect to a page that checks for that cookie and sid (when I do this I also pass the sid and the original page in the url so I can confirm that the sid, if present, is correct, and can then redirect back to the requested page.). Then run your appending-sid-to-links-in-the-page routine in such a way that it doesn't actually append the sid if the sid is being passed in in the cookie.

Of course, search engines (and other bots) will be making a fresh "entry" on each request pushing up the load on your hosting. So you might also want to look into whitelisting SE spiders (and bypassing sessions entirely for them), and maybe even look into into bot blocking if you have a popular/large site.


Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members