Session Cookie
A session cookie is a temporary cookie a website uses to remember you during a single visit, such as keeping you logged in. It is deleted when you close the browser or the session ends.
Definition
A session cookie is a small, temporary piece of data a website stores in your browser to track a single active session - for example, keeping you logged in or remembering items in your cart. Unlike persistent cookies, it has no long expiry date and is typically erased when you close the browser or after a period of inactivity.
How it works
After you log in, the server sends a Set-Cookie header containing a unique session ID. Your browser returns this ID with every request via the Cookie header, letting the server recognize you as the same authenticated user without asking for credentials again.
Why it matters for scraping
- Authenticated access - a scraper must capture and reuse the session cookie to access logged-in pages.
- Sticky sessions - the session ID should be paired with the same proxy IP to stay valid and avoid suspicion.
- Expiry handling - scrapers must detect expired sessions and re-authenticate gracefully.
Understanding session cookies is fundamental for any automation that interacts with accounts, carts, or other state that must persist throughout a browsing session.
Examples
A login session ID cookie that keeps a user authenticated until they close the browser
An e-commerce cart that remembers items via a temporary session cookie
A scraper reusing a captured session cookie to fetch account-only pages
Common Use Cases
Frequently Asked Questions
Keep Learning
All termsWeb Scraping
Web scraping is the automated extraction of data from websites — fetching pages programmatically and parsing their content into structured data.
Read definitionIP Rotation
IP rotation is the practice of automatically cycling through multiple IP addresses so that successive requests originate from different IPs.
Read definitionSticky Session
A sticky session keeps the same proxy IP for a set period, so multi-step workflows like logging in and checking out stay on one consistent address.
Read definitionUser Agent
A user agent is the identifying string a browser sends with every request, telling the server which browser, version and operating system you are using.
Read definition