[Dancer-users] Managing "sessions" for each open browser window
xsawyerx at gmail.com
Fri Sep 28 17:24:43 CEST 2012
This is interesting work.
I wish I had more time to delve into it.
On Fri, Sep 28, 2012 at 3:49 AM, Assaf Gordon <gordon at cshl.edu> wrote:
> Hello (yet again),
> On 09/27/2012 11:15 AM, Assaf Gordon wrote:
>> Assaf Gordon wrote, On 09/24/2012 01:48 PM:
>>> I want to maintain a "session" (i.e. collection of server-side
>>> variables) for each open browser window (not browser "session" in the
>>> technical sense).
> I implemented such a mechanism as a Dancer Plugin:
> Dancer::Plugin::WindowSession .
> See it in action here:
> The source code for the plugin (and the demo) are here:
> (and soon in CPAN).
> On the Perl side, simply use "window_session" keyword instead of "session"
> On the template side, you'll need to pass along the "winsid" (=window
> session id) as a CGI parameter to every URL and POST request.
> See code example here (that's the method that generates the plot for the
> It uses the same session mechanism defined in the config.yml, and only
> uses standard Dancer keywords (no ugly hacking),
> so I hope it will be stable and portable for Dancer2 .
> Comments are welcomed,
> Dancer-users mailing list
> Dancer-users at perldancer.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dancer-users