Skip to content
CookieTosser

What is the PHPSESSID cookie?

Cookie generated by applications based on the PHP language. This is a general purpose identifier used to maintain user session variables. It is normally a random generated number, how it is used can be specific to the site, but a good example is maintaining a logged-in status for a user between pages.

Our October 2026 scan found it on 73 sites (3% of the 2,450 we scanned), set before any consent.

Purpose
Functional
Belongs to
PHP.net
Set as
First-party on 99% of sites, third-party on 1%
Typical lifetime
Session (vendor says: Sessions)

Sites that set PHPSESSID before consent

The highest-ranked 30 of 73 sites.

Show 20 more sites

How to stop it

Declining non-essential cookies in a site's consent banner should stop PHPSESSID being set on later visits. Blocking third-party cookies in your browser settings stops the third-party kind everywhere, and clearing cookies for a site removes any it already set.

Description from the Open Cookie Database (Apache 2.0).

Understanding this page