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});