summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason Woodward2010-06-16 23:19:15 -0400
committerJason Woodward2010-06-16 23:19:15 -0400
commit71112d96048ced2932e7f7e95d6e47e8776d7017 (patch)
tree32fbfa1b59052f977fc610d46c4f9963ea76ca62
parentbe2162cb9155d013bc45d0363b34ce67bf6e5220 (diff)
downloadJaos-WebApp-71112d96048ced2932e7f7e95d6e47e8776d7017.tar.gz
auto set the secure cookie flag if using SSL
-rw-r--r--Changes1
-rw-r--r--lib/Jaos/WebApp/Session/Simple.pm1
2 files changed, 2 insertions, 0 deletions
diff --git a/Changes b/Changes
index 7b6077a..9a6521d 100644
--- a/Changes
+++ b/Changes
@@ -1,5 +1,6 @@
0.3 June 16, 2010
+ * auto set the secure cookie flag if using SSL
* updated error reporting when loading packages or dispatching
* added alias for req->upload to ::Controller
* encode render output
diff --git a/lib/Jaos/WebApp/Session/Simple.pm b/lib/Jaos/WebApp/Session/Simple.pm
index 5854bea..22a5020 100644
--- a/lib/Jaos/WebApp/Session/Simple.pm
+++ b/lib/Jaos/WebApp/Session/Simple.pm
@@ -27,6 +27,7 @@ sub register
path => '/',
domain => $c->req->headers->host,
expires => $expire_time,
+ secure => $ctx->req->secure ? 1 : undef,
};
}
}