Reputation: 61
I've got everything working on my small web app, even payments and hosting. It's just an app that takes scheduling information as input into a database, then it organizes it into a heavily formatted spreadsheet for download. The last thing I realize I need is reliable sessioning. I switched from the "Simple" setting to "Memcached" and then "Cookie" but I noticed the cookies don't expire.
config.yml
session: Cookie
engines:
session:
Cookie:
secret_key: 'Sooper Sekrit Passfraze Hear'
default_duration: 18000
with_request_address: 0
The cookie don't expire even if I set default_duration
for 18000
seconds. I can walk away for an hour or even stop the plack/Starman server and come back and the web app still picks up from where it left off without having to log back in. I now realize the module doesn't do what I was expecting and that my conceptualization of sessioning might be wrong as well. But there aren't many Dancer2 examples. Can anyone help me out and offer some pointers? I really just want to get something simple working that's reasonably secure. Thanks!
Upvotes: 1
Views: 82