Skip to content

Instantly share code, notes, and snippets.

@hesco

hesco/000-logs Secret

Last active April 10, 2016 21:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hesco/759ef510a5638d65ccf3c7d2922afba0 to your computer and use it in GitHub Desktop.
Save hesco/759ef510a5638d65ccf3c7d2922afba0 to your computer and use it in GitHub Desktop.
In browser I see the redirect, but the setting for immediate expiration does not seem to be respected, in the browser. Are there other steps required?
[Sun Apr 10 17:10:51 2016] [debug] GET "/validate/validate_a_petition_page"
[Sun Apr 10 17:10:51 2016] [debug] Routing to controller "Foo::Bar::Controller::Auth" and action "is_logged_in_as_validator"
[Sun Apr 10 17:10:51 2016] [debug] Your secret passphrase needs to be changed
[Sun Apr 10 17:10:51 2016] [debug] Rendering inline template "13a9ce5b82dfd3289d2e60629c92f91f"
[Sun Apr 10 17:10:51 2016] [debug] 403 Forbidden (0.003687s, 271.223/s)
[Sun Apr 10 17:10:51 2016] [debug] Routing to controller "Foo::Bar::Controller::AssetPage" and action "validate_page"
[Sun Apr 10 17:10:51 2016] [info] entering ->validate_page.
sub startup {
my $self = shift;
my $r = $self->routes;
my $validate = $r->under('/validate')->to('Auth#is_logged_in_as_validator');
$validate->get('/asset')->to('AssetPage#asset');
}
sub do_logout {
my $self = shift;
$self->session(expires => 1);
$self->redirect_to('http://www.eample.net');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment