package Dancer::Session::JSON;
# ABSTRACT: JSON session backend for Dancer
$Dancer::Session::JSON::VERSION = '0.002';
use Carp;
use base 'Dancer::Session::Abstract';
use JSON;
use Fcntl ':flock';
use
ng';
use Dancer::FileUtils qw(path set_file_mode);
# static
my %session_dir_initialized;
my $json = JSON->new;
sub init {
my $self = shift;
$self->SUPER::init(@_);
# default value for
t
# representing that session
sub create {
my ($class) = @_;
my $self = Dancer::Session::JSON->new;
$self->flush;
return $self;
}
# deletes the dir cache
sub reset {
my ($class)