$c->delete_session("logout");
}
-sub logout_persist : Global {
+sub logout_redirect : Global {
my ( $self, $c ) = @_;
- # session is not deleted
- $c->res->redirect( $c->uri_for('/') );
+
+ $c->logout;
+ $c->res->output("redirect from here");
+ $c->res->redirect( $c->uri_for('from_logout_redirect') );
+}
+
+sub from_logout_redirect : Global {
+ my ( $self, $c ) = @_;
+ $c->res->output( "got here from logout_redirect" );
}
sub set_session_variable : Global {
}
}
-sub extend_session_expires : Global {
+sub change_session_expires : Global {
my ($self, $c) = @_;
- $c->extend_session_expires(31536000);
+ $c->change_session_expires(31536000);
$c->res->output($c->session_expires);
}