Commits

Anonymous committed aebf7a5

Fix for #423

Comments (0)

Files changed (1)

cherrypy/filters/sessionfilter.py

 
 
 class SessionFilter(basefilter.BaseFilter):
+
+    def on_start_resource(self):
+        cherrypy.request._session = EmptyClass()
     
     def before_request_body(self):
         conf = cherrypy.config.get
         
-        cherrypy.request._session = EmptyClass()
         sess = cherrypy.request._session
         now = datetime.datetime.now()
         # Dont enable session if session_filter is off or if this is a