15 Sessions
Sessions rely on cookies but are more convenient to use. Although using sessions is also possible without cookies, this is not recommended.
HTTP is a stateless protocol; the last chapter pointed this out often enough. Cookies are only one way of circumventing this restriction. The main problem with cookies from the end user's point of view is that they can be used to create user profiles within certain limits. The main problem with cookies from the website developer's point of view is that they can be deactivated in the browser. Or rather, they could be—but more on that later.
One possible solution can be expressed in one word: sessions.[ 100 ] A session occurs when a surfer visits a website. So if you call up the homepage of an online ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access