Why Cookies & Sessions Are Important | 2023

Why Cookies & Sessions Are Important | 2023

A brief article related to why cookies and sessions are important for a website.


Here is a structured outline of why cookies and sessions are important | 2023,

Structured Outline ...

  • About, what are Cookies?

  • About, What Cookies Do?

  • About, what is Session?


Cookies are small files that are stored on a user’s computer. They are used to hold a modest amount of data specific to a particular client and website and can be accessed either by the web server or by the client's computer.

About, what are Cookies?

Cookies are small text files stored in a web browser's directory or data folder. As well as also referred to as "HTTP Cookies or Browser Cookies".
E.g. E-commerce websites place cookies on visitor's browsers to retain
login credentials, identify customers and provide a customized shopping experience.

About, What Cookies Do?

Secure websites use cookies to validate a user's identity as they browse from page to page. Cookies are used in:
1. Customer login.
2. Wish lists.
3. Persistent shopping carts.
4. Product recommendations.
5. Customer User Interface i.e. "Welcome back, Ahangar Aadil".
6. Retaining customer address and payment information.

About, what is Session?

Here are the main key points to consider about the session:

  • A simple way to store data for individual user's against a unique session ID.

  • Each user gets a session ID, which is sent back to the server for validation either by cookie or by GET variable.

  • It is short-lived, which makes the ideal in securing a temporary state between applications.

  • Sessions also expire once the user closes the browser.

👉 Refer to here for more details about the cookies and sessions.


🔗 Social Links (Let's connect):
▶ Instagram:
instagram.com/ahangar_aadil?u...▶ LinkedIn: linkedin.com/in/ahangaraa...▶ Telegram: t.me/ahangaraadil
▶ Facebook:
facebook.com/ahangaraadil...

📌Resume aka CV (ongoing ...)
▶ Google Drive Link:
drive.google.com/file/d/15QBZfoyvXzwGJoIn9c..link