<div dir="ltr"><div><div><div><div><div>Hello,<br><br></div>I am trying to port an application from Dancer1 to Dancer2, but I have not been able to make FlashMessage work. I took the code from github, from the branch topic/Dancer2 but several strange things happen when I include it.<br>
<br>For starters, the before_template_render hook does not appear in the debug messages that show as the app initializes (with DANCER_CORE_DEBUG set) and it is never run.<br><br></div>Most importantly, under some circumstances the app returns a new, fresh session loosing whatever was in the old one (which remains in disk, but the key is lost).<br>
<br></div>I put the simplest code in <a href="https://gist.github.com/4710740">https://gist.github.com/4710740</a>. Note that it must be run with the topic/Dancer2 branch of FlashMessage. Try running /logout without logging in; a second session appears.<br>
<br></div><div>Is this something that you can reproduce? Am I doing something wrong? <br></div><div><br></div>Not the least, thank you all for such hard work on Dancer and the whole ecosystem. I use FlashMessage for the other little apps I&#39;ve written and it works very nice.<br>
<br></div>Julio Fraire<br></div>