Delete the session on logout...
else the rows-per-page preference lingers on.
This commit is contained in:
parent
bee38a9e5c
commit
e74686dd34
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue