[Dancer-users] How do I get the unique session id for a session?
Gurunandan Bhat
gbhat at pobox.com
Sat May 28 14:09:45 CEST 2011
Thanks David and Alexis.
It would be great if this could be included in the Session::X docs.
Sometimes you often need to store objects that cannot be serialized (like
sockets) in your own hash indexed by the session id.
Thanks once again
On Sat, May 28, 2011 at 2:27 AM, Alexis Sukrieh <sukria at sukria.net> wrote:
> On 27/05/2011 23:56, David Precious wrote:
>
>> On Friday 27 May 2011 19:55:39 Gurunandan Bhat wrote:
>>
>>> I am planning to use the session id for session as a key for a hash that
>>> I
>>> am maintaining.
>>> How do I get the session id from the session object?
>>>
>>
>> Off the top of my head, engine('session')->id() should do the job.
>>
>
> Or even session->id;
>
> --
> Alexis Sukrieh
>
> _______________________________________________
> Dancer-users mailing list
> Dancer-users at perldancer.org
> http://www.backup-manager.org/cgi-bin/listinfo/dancer-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110528/3dfc81ba/attachment.htm>
More information about the Dancer-users
mailing list