<div dir="ltr"><div><br></div><table style="margin:0px;padding:0px;border:0px;font-size:13px;border-spacing:0px;border-collapse:collapse;color:rgb(34,36,38);font-family:Arial,'Helvetica Neue',Helvetica,sans-serif;line-height:16.9px"><tbody style="margin:0px;padding:0px;border:0px"><tr style="margin:0px;padding:0px;border:0px"><td class="" style="padding:0px 15px 0px 0px;border:0px;vertical-align:top"><div class="" style="margin:0px;padding:0px;border:0px;text-align:center;min-width:46px"><span itemprop="upvoteCount" class="" style="margin:8px 0px;padding:0px;border:0px;font-size:20px;display:block;color:rgb(119,119,119)">0</span><a class="" title="This question does not show any research effort; it is unclear or not useful" style="margin:0px auto 10px;padding:0px;border:0px;font-size:1px;color:rgb(0,119,204);overflow:hidden;display:block;width:40px;height:30px;background-image:url("img/sprites.svg?v=bc7c2f3904bf"),none;background-repeat:no-repeat">down vote</a><a class="" href="http://stackoverflow.com/questions/36377451/dancer2-session-not-written-to-file?noredirect=1#" title="This is a favorite question (click again to undo)" style="margin:0px auto 2px;padding:0px;border:0px;font-size:1px;color:rgb(0,119,204);text-decoration:none;overflow:hidden;display:block;width:40px;height:30px;background-image:url("img/sprites.svg?v=bc7c2f3904bf"),none;background-repeat:no-repeat">favorite</a><div class="" style="margin:0px;padding:0px;border:0px"><span style="margin:0px;padding:0px;border:0px;color:rgb(119,119,119)"></span></div></div></td><td class="" style="padding:0px;border:0px;vertical-align:top"><div style="margin:0px;padding:0px;border:0px"><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word"><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">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.</p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">e.g.</p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">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.</p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both"><br></p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both"><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">get </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(107,41,27);background-color:rgb(238,238,238)">'/test/:key/:value'</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)"> </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">=></span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)"> </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(0,0,139);background-color:rgb(238,238,238)">sub</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)"> </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">{</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">
</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(0,0,139);background-color:rgb(238,238,238)">my</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)"> $key </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">=</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">params</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">->{</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">key</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">};</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">
</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(0,0,139);background-color:rgb(238,238,238)">my</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)"> $value </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">=</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">params</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">->{</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">value</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">};</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">
session</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">(</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">$key</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">=></span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">$value</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">);</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">
template </span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(107,41,27);background-color:rgb(238,238,238)">'test'</span><span class="" style="font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;font-size:13px;line-height:16.9px;white-space:pre;margin:0px;padding:0px;border:0px;color:rgb(46,49,51);background-color:rgb(238,238,238)">;};</span><br></p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">The result of Data Dumper is</p><pre class="" style="font-size:13px;line-height:1.3;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit"><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">$VAR1 </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'engines'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'template'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'template_toolkit'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'start_tag'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'<%'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">,</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'end_tag'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'%>'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">}</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">},</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'session'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'YAML'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'cookie_name'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'domain.session'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">,</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'is_secure'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'1'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">,</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'is_http_only'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'1'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">,</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'session_dir'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'/tmp/dancer-sessions/'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">}</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">}</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">},</span></code></pre><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">And session var is</p><pre class="" style="font-size:13px;line-height:1.3;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit"><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">$VAR1 </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">{</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">'a'</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">=></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">};</span></code></pre><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">At this point I expect my /tmp directory to contain a session folder but I see the following</p><pre class="" style="font-size:13px;line-height:1.3;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit"><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">starman@ubuntu</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:~</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">/www/</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">app$ ls </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">al </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">/</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">tmp
total </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">776</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
drwxrwxrwt  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> root    root      </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">4096</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Apr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">14</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">39</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">.</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
drwxr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">xr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">x </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">21</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> root    root      </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">4096</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Apr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">07</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">31</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">..</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">rw</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman starman </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">776737</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Apr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">14</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">31</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">.</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">err
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">rw</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman starman      </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">0</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Apr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">07</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">31</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">.</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">out
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">rw</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">-</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">r</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">--</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman starman      </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">4</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Apr</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">  </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">2</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">14</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">:</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">31</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> starman</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">.</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">pid</span></code></pre><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">I am unable to figure out why the session file is not getting created. Any pointers on my mistake will be helpful</p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">My <a href="http://test.tt">test.tt</a> is as follows</p><pre class="" style="font-size:13px;line-height:1.3;margin-top:0px;margin-bottom:1em;padding:5px;border:0px;width:auto;max-height:600px;overflow:auto;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;color:rgb(57,51,24);word-wrap:normal;background-color:rgb(238,238,238)"><code style="margin:0px;padding:0px;border:0px;font-family:Consolas,Menlo,Monaco,'Lucida Console','Liberation Mono','DejaVu Sans Mono','Bitstream Vera Sans Mono','Courier New',monospace,sans-serif;white-space:inherit"><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"><%</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">USE </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Dumper</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">%></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"><</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">h1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Dumping</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"> the settings variable </span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"><</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(107,41,27)">/h1>
<%Dumper.dump_html(settings)%>
<h1> Dumping the session variable </</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">h1</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">></span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">
</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)"><%</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(43,145,175)">Dumper</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">.</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">dump_html</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">(</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">session</span><span class="" style="margin:0px;padding:0px;border:0px;color:rgb(46,49,51)">)%></span></code></pre><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both">The live url for this route is</p><p style="font-size:15px;line-height:1.3;margin:0px 0px 1em;padding:0px;border:0px;clear:both"><a href="http://edaindia.com/test/var/bar" rel="nofollow" style="margin:0px;padding:0px;border:0px;color:rgb(0,89,153);text-decoration:none">Live URL<br></a></p>Note: I am launching 2 separate domain using a common app.psgi file whose content is as follows</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word"><br></div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word"><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use Plack::Builder;</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use Dancer2 ':syntax';</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use lib '/home/starman/www/dyumnin/lib';</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use lib '/home/starman/www/edaindia/lib';</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word"><br></div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use dyumnin;</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">use edaindia;</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word"><br></div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">builder {</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">    mount '<a href="http://edaindia.com/">http://edaindia.com/</a>'      => edaindia->to_app;</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">    mount '<a href="http://dyumnin.com/">http://dyumnin.com/</a>' => dyumnin->to_app;</div><div class="" itemprop="text" style="margin:0px 0px 5px;padding:0px;border:0px;width:660px;word-wrap:break-word">};</div></div></div></td></tr></tbody></table><div><br></div>-- <br><div class="gmail_signature"><a href="https://www.facebook.com/vijayvithal.jahagirdar" target="_blank">https://www.facebook.com/vijayvithal.jahagirdar</a><br><a href="https://twitter.com/jahagirdar_vs" target="_blank">https://twitter.com/jahagirdar_vs</a><br><a href="http://democracies-janitor.blogspot.in/" target="_blank">http://democracies-janitor.blogspot.in/</a><br></div>
</div>