Trakis

Trakis · Rules

URL with session parameters

Internal links, and the page’s own address, carrying a session ID: PHPSESSID, sid, sessionid, JSESSIONID (also as ;jsessionid= in the path), osCsid, zenid, CFID/CFTOKEN, or ASP.NET’s /(S(…))/. Each visitor gets a different address for the same page, so a crawler sees endless copies of the site. Google’s advice: avoid session IDs in URLs and use cookies instead.

NoticeCRAWL-005 · Crawlability · checked on every page

URL parameters and session IDs: what Google says, and the one to remove

Updated 17 October 2026.

A URL parameter is what follows the question mark: ?colour=black&sort=price. Some change what the page shows, some only say where a visitor came from, and one kind gives every visitor an address of their own: the session ID. This check finds that one.

What Google says (its URL structure page):

  • Overly complex URLs, especially with several parameters, can cause problems for crawlers: many addresses for the same or similar content.
  • Its list of causes: filters that combine (colour and size and price), parameters that change nothing, such as session IDs and sort orders, endless calendars, and broken relative links.
  • On session IDs: wherever possible, avoid them in URLs and use cookies instead.
  • For the rest: trim parameters that do not change the content, and consider keeping crawlers out of the addresses that cause trouble with robots.txt.

Why session IDs are the worst of them. A platform that keeps its session in the address, when the visitor has no cookies, writes it into every link on the page. Crawlers keep no cookies, so each visit gets a fresh set of addresses for the same pages, without end. The copies compete with the real pages and use up the visits a crawler would have spent on new ones.

<a href="/shop/boots?PHPSESSID=8f2a1c9e">Boots</a>
<a href="/cart;jsessionid=AB12CD34">Cart</a>
<a href="/products?osCsid=5e6f7a">Products</a>

The fix is a setting, not a page-by-page change: sessions in cookies only. In PHP that is session.use_trans_sid = 0 and session.use_only_cookies = 1; in Java, the servlet container’s session tracking mode set to cookies; old shop platforms have an option for it. Then each page’s canonical names the clean address.

The other parameters, and where the audit looks at them:

  • Tracking (utm_source, gclid, fbclid): the audit files the address without them, so they never count as new pages.
  • Sort orders and filters: a canonical to the plain list keeps them out of results; their repeated titles and text are CONTENT-005 and CONTENT-008, their canonicals INDEX-004.
  • Page numbers: each page of a list is a page of its own, and names itself as canonical.

Ours, as it is. trakis.io uses two parameters, and neither makes a crawler see new pages:

  • /tools/robots-txt-validator?agent=GPTBot opens the validator with a bot filled in, and names the plain validator as its canonical.
  • ?from=, which says where someone who signs up came from, is added to a sign-up link only as it is pressed. A crawler, which presses nothing, sees the plain link.

Check it yourself. Open the site in a private window with cookies blocked and hover over the menu links: a PHPSESSID=, sid= or ;jsessionid= in them is what crawlers get. Search Console’s Page indexing report shows the copies as “Duplicate without user-selected canonical”.

How the audit decides.

  • It reads the page’s internal links as they are written, and the page’s own address, for a session ID: PHPSESSID, sid, sessionid, JSESSIONID (also ;jsessionid= in the path), osCsid, zenid, CFID/CFTOKEN, or ASP.NET’s /(S(…))/.
  • Any is CRAWL-005, a notice, with the links that carry it as the evidence; pages from one template are one finding.
  • Until 17 October 2026 it looked at the address alone, which the crawl files without PHPSESSID or sessionid, so its own example could never appear. The crawl still files each page once, without the session.

Sources, read on 17 October 2026: Google Search Central, URL structure best practices for Google Search.

How common it is

In our study of 330 small sites, read from Common Crawl’s October 2026 archive (up to 100 pages a site), 1.2% of them had this problem on one page or more.

Where it usually comes from

Older shop platforms and custom PHP sites that fall back to putting the session in the URL when cookies are disabled — which is exactly how crawlers visit.

If Search Console says…

In the Page indexing report, these statuses can come from what this check finds:

  • “Alternate page with proper canonical tag”. Once each session address carries a canonical to the clean one, the copies land here. That keeps them out of search; leaving the ID out of the address keeps them from being made. What this status means, and how to fix it.
  • “Duplicate without user-selected canonical”. Each session ID gives the same page another address, and Google treats the copies as duplicates. What this status means, and how to fix it.
  • “Discovered - currently not indexed”. Every session ID is a new address for Google to crawl. Its crawl budget guide asks sites to spend crawling on unique content, not unique URLs. What this status means, and how to fix it.

How to fix it

  • Keep sessions in cookies, never in the address.
  • Make internal links use the clean address, and point the canonical of each page to it.

How to check it yourself

Open the site with cookies blocked and look at the links in the menu: if they carry sid= or PHPSESSID=, crawlers see them too.

What it looks like in a report

Notice 12 links on this page carry a session ID (PHPSESSID): every visitor without cookies, crawlers included, gets new addresses for the same pages.

The platform writes the session into links; one setting on the server usually removes it everywhere. (An example shop; the numbers are illustrative.)

How the audit counts it

CRAWL-005 is a notice in the crawlability category, and weighs lightly in that category’s score. When it appears on many pages built from the same template, the report shows it once, with the number of pages it covers — because one change in the template fixes all of them.

If the finding is deliberate on your site, it can be accepted as intentional in the report. It then leaves the list and the score, and comes back on its own if what it shows changes.

Other crawlability checks

Find it on your site

A free Trakis audit runs this check and the other 66 on your site, and tells you on how many pages each one sits. Or go back to all the rules.