0 | In my Dancer2 app I find that the session information is not stored in between file request. I am using YAML as my session store format. e.g. I have defined a test route to set a variable in the session and dump the settings and session variable in the template using Data Dumper in the template. get '/test/:key/:value' => sub {
my $key =params->{key};
my $value =params->{value};
session($key=>$value);
template 'test';}; The result of Data Dumper is And session var is At this point I expect my /tmp directory to contain a session folder but I see the following I am unable to figure out why the session file is not getting created. Any pointers on my mistake will be helpful My test.tt is as follows The live url for this route is Note: I am launching 2 separate domain using a common app.psgi file whose content is as followsuse Plack::Builder; use Dancer2 ':syntax'; use lib '/home/starman/www/dyumnin/lib'; use lib '/home/starman/www/edaindia/lib'; use dyumnin; use edaindia; builder { mount 'http://edaindia.com/' => edaindia->to_app; mount 'http://dyumnin.com/' => dyumnin->to_app; }; |