Clean up session stuff
This commit is contained in:
parent
a6186eee2b
commit
f02ebbae63
|
@ -19,7 +19,7 @@ under sub {
|
||||||
my ($c) = @_;
|
my ($c) = @_;
|
||||||
|
|
||||||
if ($c->cookie('banner') eq 'seen') {
|
if ($c->cookie('banner') eq 'seen') {
|
||||||
$c->session->{banner} = 'seen' unless $c->session->{banner}
|
$c->session->{banner} //= 'seen'
|
||||||
}
|
}
|
||||||
|
|
||||||
1;
|
1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user