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.

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 September 2016
  • 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 Professional Engine Master's Chart
  • The Internet Marketing Glossary
  • The Ultimate Directory Submission List
  • The Pro SEO's Local Search Directory List
  • 16 years of SEN Archives
  • 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 October 2nd, 2016

 This form is encrypted for your security

  • Chrome Browser Set to Block Flash in Sept

  • Google States: Redirecting Your Pages Doesn't Affect PageRank

  • 5 Site Audit Tips to Recover from a Penguin Algorithmic Slap!

  • A Webmaster's Guide to Migrating a Site to HTTPS

  • AMP Updates: Recipes, New Reporting, New Features and More

  • You've Decided to Add a Blog. Now What?!

  • A Webmaster's Guide to the Advanced Techniques of 301 Redirects

  • How to Use a 301 Redirect to Keep Your Pages from Dropping Off the Face of the Earth

  • Google Analytics & Search Console Slowly Merging

  • Google's Structured Data Testing Tool Gets Helpful Features

  • Mobile Friendly Pages Just Got Another Ranking Boost

  • Looking to Boost your Domain Authority? Here are some Tips!

  • Your Ultimate Guide to XML Sitemaps

  • How to Generate Kick-Ass Content for your Clients!

  • The Knockout Punch - How To Win With Your Home Page

  • The 2016 SEO's Mobile Website Audit Checklist

  • Is Your Apple Touch Icon in Place?

  • Study Shows App Makers NOT Utilizing App Indexing/Deep Linking

  • Google Confirms New Boost for Mobile Friendly Sites

  • Google Supports JSON-LD for Reviews and Products

  • Beware: Spammy Recipe Markup Plugins

  • Three Kick-Ass Free Keyword Research Methods

  • Three Great Reasons to Target Long Tail Keywords in a Post RankBrain World

  • The Ultimate Real World Structured Data Code Reference Guide

  • New Accelerated Mobile Pages Reports

  • Google Adds New Webmaster Guidelines - Rewrites Others

  • Google's Core Algorithm Updated, Panda Absorbed

  • Should I Remove the Dates in my Blog URLs? Yes!

  • Your 2016 Professional Local Search Audit Checklist

  • Understanding and Leveraging Structured Data to Dominate Your Industry