Created
December 25, 2009 12:16
-
-
Save nihen/263611 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package Plack::Middleware::Debug::Session; | |
use 5.008; | |
use strict; | |
use warnings; | |
use parent qw(Plack::Middleware::Debug::Base); | |
our $VERSION = '0.03'; | |
sub process_response { | |
my ($self, $res, $env) = @_; | |
my $session = $env->{'plack.session'}; | |
$self->content($self->render_hash($session ? $session->store->dump_session($session->id) : {} )); | |
} | |
1; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment