Issue #1136 new

Updates to session are removed after internal redirect

Anonymous created an issue



@cherrypy.expose def page_one(self) cherrypy.session['spam'] = 'eggs' return redirect('page_two', internal=True)

@cherrypy.expose def page_two(self) return cherrypy.session['spam'] }}} Yields a KeyError (session remembers the state of the start of the request, ignoring our update).

Changing the redirect to a more sketchy {{{


return self.page_two()

}}} solves the problem

Using Memcached for storing session data, but haven't tested with other session types. I had this problem both within AppEngine and when testing locally.

-- alexeymk

Comments (0)

  1. Log in to comment