Created
December 22, 2009 13:31
-
-
Save nihen/261745 to your computer and use it in GitHub Desktop.
This file contains 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::Session::State::Cookie::Session; | |
use strict; | |
use warnings; | |
our $VERSION = '0.01'; | |
use parent 'Plack::Session::State::Cookie'; | |
use Plack::Util::Accessor qw[ | |
is_generate | |
]; | |
sub generate { | |
my $self = shift; | |
$self->is_generate(1); | |
$self->SUPER::generate(@_); | |
} | |
sub finalize { | |
my $self = shift; | |
return unless $self->is_generate; | |
$self->SUPER::finalize(@_); | |
} | |
1; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment