projects
/
catagits/Web-Session.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
adding in the dump_session method to the Store classes
[catagits/Web-Session.git]
/
lib
/
Plack
/
Session
/
Store
/
File.pm
diff --git
a/lib/Plack/Session/Store/File.pm
b/lib/Plack/Session/Store/File.pm
index
8da664c
..
0e5918d
100644
(file)
--- a/
lib/Plack/Session/Store/File.pm
+++ b/
lib/Plack/Session/Store/File.pm
@@
-71,6
+71,13
@@
sub _deserialize {
$self->deserializer->( $file_path );
}
+sub dump_session {
+ my ($self, $session_id) = @_;
+ my $file_path = $self->_get_session_file_path( $session_id );
+ return {} unless -f $file_path;
+ $self->deserializer->( $file_path );
+}
+
1;