diff --git a/guestbook-ng.pl b/guestbook-ng.pl index bde507f..51dc9c6 100755 --- a/guestbook-ng.pl +++ b/guestbook-ng.pl @@ -43,14 +43,10 @@ under sub ($c) { unless ($c->session('counted')) { $c->counter->increment_visitor_count(); $c->session( - expires => time() + 3600, - counted => 1 + expiration => 1800, + counted => 1 ); } - # Delete this since I was supposed to be using 'expires' instead - # of 'expiration'; the difference is outlined here: - # https://docs.mojolicious.org/Mojolicious/Controller#session - delete $c->session->{'expiration'} if $c->session('expiration'); $c->stash(status => 403) if $c->flash('error');