commit | 1a39472f3dafa45dc37a0b9ea6383314f441b76d | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Wed Jun 21 16:25:30 2017 +0200 |
committer | Akron <nils@diewald-online.de> | Wed Jun 21 16:25:30 2017 +0200 |
tree | 70d30aabd5981eb911fef0c662370669f69cf30c | |
parent | a3a0eec5928a10a566be6b148138ac488198672c [diff] [blame] |
Improve cookies Change-Id: Idace6999f5572be8a1d7e1c2093944dc8a2bc658
diff --git a/lib/Kalamar.pm b/lib/Kalamar.pm index 0b25d07..24d57ac 100644 --- a/lib/Kalamar.pm +++ b/lib/Kalamar.pm
@@ -59,6 +59,12 @@ my $conf = $self->config('Kalamar'); if ($conf && $conf->{proxy_prefix}) { + for (app->sessions) { + $_->cookie_path($conf->{proxy_prefix}); + $_->cookie_name('kalamar'); + $_->secure(1); + }; + # Set prefix in stash $self->defaults(prefix => $conf->{proxy_prefix});