What's the Best Way to Manage Session IDs within my PHP dynamic URLs?
 by Casey Markee

What's the Best Way to Manage Session IDs within my PHP dynamic URLs?

  • Most of my webpages are constructed with PHP in order to use the Shopping.com API. This results in the addition of ?pid=38089342 identifiers to the end of all my URLs. How do I stop the ?pid= from displaying? I understand it can result in possible duplicate content issues with the search engines.

Answer: Those ?pid= appendages to your URLs are called session IDs (pronounced: eye dees). They're used to uniquely identify and track each visitor to your site.

Session IDs can create a problem with search engine indexability, since spiders prefer not to index pages that have session IDs in the URL. Session IDs are notorious for trapping a search engine spider in a loop (they call it a spider trap) where the same page gets served to the spider over and over—each time with a different session ID.

This happens because the session ID is trying to track the spider as a unique visitor. So each time a search engine downloads the page, it sees a different session ID tagged onto that page's URL. This can confuse the search engine into thinking that it's a different page, rather than the same page with a URL based on the different session ID number.

Google ...

Already a member? Sign in here

Read the rest of this article,
and get all this for only $1.

  • The Search Engine Strategies Updates for April 2021
  • SEN's Monthly Marketing Podcast for Strategies on the Go
  • Ultimate Guide to Avoiding Google Penalties
  • The Complete Site Audit Checklist
  • The Definitive Local Search Audit Checklist
  • 100's of Strategic SEO Articles and Q&As
  • The Internet Marketing Glossary
  • The Pro SEO's Local Search Directory List
  • 2019 Unfair Advantage SEO Beginner's Book
  • Pro's Ultimate WordPress Plugin Guide
  • The Vault: SEN's Internet Marketing Research Libraries
  • PLUS, as a Full SEN Basic Member, you'll be eligible for hundreds of dollars of discounts on SEO courses ranging from beginner to master on a variety of topics including organic search, local search, and social networking.

  • Your $1 Trial is good for 7 days at which time your card will be charged $29/mo unless you cancel before April 28th, 2021

 This form is encrypted for your security