[Dancer-users] How do I get the unique session id for a session?

David Precious davidp at preshweb.co.uk
Sun May 29 14:11:26 CEST 2011


On Saturday 28 May 2011 10:27:07 Alexis Sukrieh wrote:
> > Off the top of my head, engine('session')->id() should do the job.
> 
> Or even session->id;

Ah yes, that's rather more succinct :)

I forgot session()'s ctrickery to either set / return session vars or call 
session engine methods depending on how you use it.



-- 
David Precious  ("bigpresh")
http://www.preshweb.co.uk/

   "Programming is like sex. One mistake and you have to support
   it for the rest of your life". (Michael Sinz)


More information about the Dancer-users mailing list