Session Cookie

What Does Session Cookie Mean?

A session cookie is a file containing an identifier (a string of letters and numbers) that a website server sends to a browser for temporary use during a limited timeframe.


Session cookies are enabled by default. Their purpose is help individual web pages load faster and improve navigation through a website. Each time the browser requests a web page from the server, it includes the session cookie file with its request. The cookie lets the server know which page components the browser has already been sent, so the server doesn't waste time re-sending them. When the browser closes at the end of a session, the file is deleted.

A session cookie is also known as transient cookie. This type of cookie is stored in temporary memory and is only available during an active browser session. End users can adjust browser settings to decline session cookies, however this often results in a poor user experience.

Techopedia Explains Session Cookie

A common example of a session cookie in action is in the shopping cart feature found on most e-commerce websites. The session cookie stores the items that the user has added to their cart so so as they browse through the site, the items in the cart will follow them. Without a session cookie, when a user went to the checkout page, items would disappear from the shopping cart because the new page would not recognize prior activities on the website.

If a user wants to retain items in their shopping cart so they can be viewed in a future session, they will need to accept the website's persistent cookies. Persistent cookies are stored in long-term memory and contain information about the specific user. Persistent cookies require the user’s permission before they can be stored on the user’s web browser.


Related Terms

Latest DevOps Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…