From 5723fda7fc1b3a246a8f5e287e0e01e3fae71fcd Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 6 Nov 2013 15:14:31 +0100 Subject: [PATCH] Keep session state across hydra-server restarts --- src/lib/Hydra.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/Hydra.pm b/src/lib/Hydra.pm index 42da5f65..edcecb4d 100644 --- a/src/lib/Hydra.pm +++ b/src/lib/Hydra.pm @@ -54,7 +54,8 @@ __PACKAGE__->config( }, 'Plugin::Session' => { expires => 3600 * 24 * 2, - storage => Hydra::Model::DB::getHydraPath . "/session_data" + storage => Hydra::Model::DB::getHydraPath . "/session_data", + unlink_on_exit => 0 }, 'Plugin::AccessLog' => { formatter => {