use strict;
use warnings;
-our $VERSION = '0.09_02';
+our $VERSION = '0.11';
our $AUTHORITY = 'cpan:STEVAN';
use parent 'Plack::Session::State';
delete $options{id};
- $options{path} = $self->path || '/' if !exists $options{path} && defined $self->path;
+ $options{path} = $self->path || '/' if !exists $options{path};
$options{domain} = $self->domain if !exists $options{domain} && defined $self->domain;
$options{secure} = $self->secure if !exists $options{secure} && defined $self->secure;
$options{httponly} = $self->httponly if !exists $options{httponly} && defined $self->httponly;
+
if (!exists $options{expires} && defined $self->expires) {
$options{expires} = time + $self->expires;
}
=head1 DESCRIPTION
-This is a subclass of L<Plack::Session::State> and implements it's
+This is a subclass of L<Plack::Session::State> and implements its
full interface. This is the default state used in
L<Plack::Middleware::Session>.
=item B<new ( %params )>
-The C<%params> can include I<path>, I<domain>, I<expires> and
-I<secure> options, as well as all the options accepted by
+The C<%params> can include I<path>, I<domain>, I<expires>, I<secure>,
+and I<httponly> options, as well as all the options accepted by
L<Plack::Session::Store>.
=item B<path>
Secure flag for the cookie, if nothing is supplied then it will not
be included in the cookie.
+=item B<httponly>
+
+HttpOnly flag for the cookie, if nothing is supplied then it will not
+be included in the cookie.
+
=back
=head1 BUGS