O'Reilly logo

Sams Teach Yourself Django in 24 Hours by Brad Dayley

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 16. Managing Sessions and Cookies

<feature><title>What You’ll Learn in This Hour</title> <objective>

How Django’s session framework works

</objective>
<objective>

How to configure the session manager

</objective>
<objective>

How to use Django’s test cookies to verify that the browser supports cookies

</objective>
<objective>

How to add and retrieve session data using the session attribute of the HttpRequest object

</objective>
<objective>

How to set and retrieve cookies using the HttpRequest object

</objective>
</feature>

In the past couple of hours, we have covered implementing users and authentication. Now it is time to discuss implementing a session framework that will allow you to provide a persistent state for user data.

As a user browses the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required