Checking in changes prior to tagging of version 0.09_01. Changelog diff is:
[catagits/Web-Session.git] / lib / Plack / Session / Store / File.pm
index 0a27952..3623fab 100644 (file)
@@ -2,7 +2,7 @@ package Plack::Session::Store::File;
 use strict;
 use warnings;
 
-our $VERSION   = '0.03';
+our $VERSION   = '0.09_01';
 our $AUTHORITY = 'cpan:STEVAN';
 
 use Storable ();
@@ -41,10 +41,10 @@ sub fetch {
 sub store {
     my ($self, $session_id, $session) = @_;
     my $file_path = $self->_get_session_file_path( $session_id );
-    $self->serializer->( $session->dump, $file_path );
+    $self->serializer->( $session, $file_path );
 }
 
-sub cleanup {
+sub remove {
     my ($self, $session_id) = @_;
     unlink $self->_get_session_file_path( $session_id );
 }