[dancer-users] session->{} doesn't work?

Octavian Rasnita orasnita at gmail.com
Sun Mar 17 15:07:48 GMT 2013


Hi,

I read that we can use both:

session('key')
and
session->{key}

...in order to get a value from the session.

I tried:

template 'login', { message => session->{flash} };

but it didn't work. However, the following worked:

template 'login', { message => session('flash') };

--Octavian



More information about the dancer-users mailing list