missed one url-rewrite.
[catagits/Catalyst-Plugin-Session-State-Cookie.git] / FastMmap.pm
index c9c8113..ed6325d 100644 (file)
@@ -9,7 +9,7 @@ use URI;
 use URI::Find;
 use File::Temp 'tempdir';
 
-our $VERSION = '0.05';
+our $VERSION = '0.06';
 
 __PACKAGE__->mk_classdata('_session');
 __PACKAGE__->mk_accessors('sessionid');
@@ -37,8 +37,10 @@ Fast sessions.
 
 sub finalize {
     my $c        = shift;
-    my $redirect = $c->response->redirect;
-    $c->response->redirect( $c->uri($redirect) ) if $redirect;
+    unless ($c->config->{no_url_rewrite}) {
+        my $redirect = $c->response->redirect;
+        $c->response->redirect( $c->uri($redirect) ) if $redirect;
+    }
     if ( my $sid = $c->sessionid ) {
         $c->_session->set( $sid, $c->session );
         my $set = 1;
@@ -169,7 +171,7 @@ how many seconds until the session expires. defaults to 1 day
 How often should the system purge sessions. Defaults to 1 time
 per day.
 
-=head auto_purge_on_set
+=head3 auto_purge_on_set
 
 Is auto purge enabled? defaults to true.