Skip to content

Instantly share code, notes, and snippets.

@nihen
Created December 25, 2009 12:16
Show Gist options
  • Save nihen/263611 to your computer and use it in GitHub Desktop.
Save nihen/263611 to your computer and use it in GitHub Desktop.
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