<p>In Dancer2, you can&#39;t access the session object data directly like that anymore.</p>
<p>You can use the API described in Dancer2::Core::Session, though.</p>
<p>David</p>
<div class="gmail_quote">On Mar 17, 2013 11:08 AM, &quot;Octavian Rasnita&quot; &lt;<a href="mailto:orasnita@gmail.com">orasnita@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
I read that we can use both:<br>
<br>
session(&#39;key&#39;)<br>
and<br>
session-&gt;{key}<br>
<br>
...in order to get a value from the session.<br>
<br>
I tried:<br>
<br>
template &#39;login&#39;, { message =&gt; session-&gt;{flash} };<br>
<br>
but it didn&#39;t work. However, the following worked:<br>
<br>
template &#39;login&#39;, { message =&gt; session(&#39;flash&#39;) };<br>
<br>
--Octavian<br>
<br>
______________________________<u></u>_________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm" target="_blank">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" target="_blank">http://lists.preshweb.co.uk/<u></u>mailman/listinfo/dancer-users</a><br>
</blockquote></div>