Move call to _save_session_expires to finalize_session
authorStefan Seifert <nine@cpan.org>
Thu, 30 Jun 2011 13:24:10 +0000 (13:24 +0000)
committerStefan Seifert <nine@cpan.org>
Thu, 30 Jun 2011 13:24:10 +0000 (13:24 +0000)
commit94222de2be3cabb5236edfd948be1dea662e7a43
treeb12f9b8fe0769c41a236354096304c9ba9854de2
parentd0a11c12c83a471be93ebd44fa1b1386f7c310c5
Move call to _save_session_expires to finalize_session

_save_session_expires got called in finalize_header, because it
implicitly also extends the session expiry which in turn influences a
possible session cookie which has to be finalized before finalizing
headers.

This patch moves the call to _save_session_expires to finalize_session
with the rest of the _save_* calls and only leaves updating the
session_expiry in finalize_header. This is needed as base for a patch to
Catalyst::Plugin::SubRequest which will allow starting new sessions from
within a subrequest.
lib/Catalyst/Plugin/Session.pm