Skip to content

Instantly share code, notes, and snippets.

@rumidier
Created July 11, 2012 12:17
Show Gist options
  • Save rumidier/3090013 to your computer and use it in GitHub Desktop.
Save rumidier/3090013 to your computer and use it in GitHub Desktop.
Loout.pm-index
sub index :Path :Args(0) {
my ($self, $c) = @_;
# Clear the user's state
$c->logout;
# Send the user to the starting point
$c->response->redirect($c->uri_for('/'));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment