How do Websites Remember us? Uncovering the Magic of Sessions in Flask 🤯🤯

Aditya Mangal
6 min readSep 26, 2024

Have you ever noticed how apps like Instagram magically remember your login details, profile picture, and followers whenever you open them? That’s the power of sessions at work! These clever bits of technology allow websites to track you across multiple requests, ensuring you stay connected without the hassle of constantly re-entering your information.

Today, Muskan Modi and I have collaborated to explore the topic Sessions in Flask. This post dives into what sessions are, how they work, and why they’re crucial for creating a seamless user experience online. Let’s break it down!

A session is when a user logs into a server and stays active until they log out. Sessions allow temporary data to be stored for the user while they are logged in, making the user experience smoother and more seamless.

Let’s take Instagram as an example. When you open the app, Instagram remembers your username, password, and other information without needing…

--

--

Aditya Mangal

My Personal Quote to overcome problems and remove dependencies - "It's not the car, it's the driver who win the race".