Group
Extension

Matches 2

Dancer-Session-Memcached-JSON ( F/FB/FBELTON/Dancer-Session-Memcached-JSON-0.005.tar.gz, FBELTON, 2014; MetaCPAN )
Dancer-Session-Memcached-JSON/lib/Dancer/Session/Memcached/JSON.pm ( view source; MetaCPAN )
er::Session::Memcached::JSON;

our $VERSION = '0.005'; # VERSION
# ABSTRACT: Session store in memcached with JSON serialization

use base 'Dancer::Session::Abstract';

use JSON;
use Cache::Memcached;
ode qw(encode_utf8 decode_utf8);
use Dancer::Config qw(setting);

use Dancer::Session::Memcached::JSON::Signature qw(sign unsign);

my $MEMCACHED;
my $secret;

sub init {
    my ($class) = @_;
    my 
g('session_cookie_path') // '/',
            httpOnly       => setting('session_is_http_only') // JSON::true,
            expires        => setting('session_expires'),
            originalMaxAge => un
Dancer-Session-Memcached-JSON ( F/FB/FBELTON/Dancer-Session-Memcached-JSON-0.005.tar.gz, FBELTON, 2014; MetaCPAN )
Dancer-Session-Memcached-JSON/lib/Dancer/Session/Memcached/JSON/Signature.pm ( view source; MetaCPAN )
use strict;
use warnings;
package Dancer::Session::Memcached::JSON::Signature;

# Adapted from https://github.com/visionmedia/node-cookie-signature

use Digest::SHA qw(hmac_sha256_base64 sha1_hex);
us
1_hex($mac) eq sha1_hex("s:$val");
}

1;

__END__

=pod

=head1 NAME

Dancer::Session::Memcached::JSON::Signature

=head1 VERSION

version 0.005

=head1 AUTHOR

Forest Belton <forest@homolo.gy>

=head

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.