Introducing web sessions
Do you understand how the login system functions? How does the application recognize my connection status? How does it distinguish between displaying a logout button for a logged-in user and a login button for a friend who is not connected? How long does the application retain my connection status?
In this chapter, we’ll address these questions and explore the significance of web sessions in the development of web applications. We will explore these elements in the following order:
- HTTP protocol limitations
- Web sessions
- Django login scenario
- Django sessions
HTTP protocol limitations
Currently, our interaction with the Movies Store website relies on the HTTP protocol. For instance, to access movie information, we utilize http://localhost:8000/movies
, and for logging in, we use http://localhost:8000/login
. Each request we make utilizes the HTTP protocol as its communication medium.
Nevertheless, the HTTP protocol has...