﻿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
1057	cannot set SESSION_COOKIE_AGE to None	anonymous	Adrian Holovaty	"If I want to use the Session Middleware to set the initial cookie to be only valid for the browser session
(meaning would like to expire it after the browser is closed), I get this:
Mod_python error: ""PythonHandler django.core.handlers.modpython""

Traceback (most recent call last):

  File ""/apps/python/v2/v242/lib/python2.4/site-packages/mod_python/apache.py"", line 299, in HandlerDispatch
    result = object(req)

  File ""/apps/django/lib/django/core/handlers/modpython.py"", line 165, in handler
    return ModPythonHandler()(req)

  File ""/apps/django/lib/django/core/handlers/modpython.py"", line 145, in __call__
    response = middleware_method(request, response)

  File ""/apps/django/lib/django/middleware/sessions.py"", line 73, in process_response
    datetime.datetime.now() + datetime.timedelta(seconds=SESSION_COOKIE_AGE))

TypeError: unsupported type for timedelta seconds component: NoneType

Basically, I would like the cookie to be not stored on disk by the clients browser, achieved by setting
max_age=None (?).
Maybe have a separate variable for the session database?
"	enhancement	closed	Core (Other)		normal	duplicate			Unreviewed	0	0	0	0	0	0
