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