Delete the session on logout...

else the rows-per-page preference lingers on.
This commit is contained in:
barnold 2022-09-20 14:20:27 +01:00
parent bee38a9e5c
commit e74686dd34
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ sub login ($self) {
}
sub logout ($self) {
$self->session(logname => undef);
# "Delete whole session by setting an expiration date in the past"
# - from Mojolicious::Controller.
$self->session(expiration => 1);
$self->redirect_to('home');
}