﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
14770	Should be able to set cookies from the request as well as the response.	Paul McLanahan	Paul McLanahan	"The arguments are laid out quite well in a [http://www.davidcramer.net/code/62/set-cookies-without-a-response-in-django.html blog post by David Cramer]. In short, one is never sure where in the request-response cycle the need to send a cookie to the browser will arise. It's therefore best, as it's done in many other web frameworks and technologies, to give the developer the ability to do that throughout the view.

David's example code from that blog post, and his subsequently released [https://github.com/dcramer/django-cookies django-cookies project] no longer work as of Django 1.2. I've taken a slightly different approach in [https://gist.github.com/710480 my version of his idea], but it still requires a custom middleware to be installed.

I believe this should be a core function of Django. If you agree, please take a look at my patch. I've included tests and docs. Any feedback at all is most welcome."		closed	Core (Other)	dev		wontfix	cookies		Design decision needed	1	0	0	0	0	0
