[Dancer-users] Custom Session Handler issues

J. Bobby Lopez jbl at jbldata.com
Wed May 18 18:22:39 CEST 2011


Thanks David/Oalf,
I'm working on the suggestions provided, will follow up with results.

On Wed, May 18, 2011 at 12:02 PM, Olaf Alders <olaf at wundersolutions.com>wrote:

>
> On 2011-05-18, at 11:56 AM, David Precious wrote:
> > Also, you don't call $session->flush at any point to write the session
> > contents to disc.
> >
> > In theory, CGI::Session will implicitly flush the session when the
> $session
> > object goes out of scope (which, in your example, will only be as the
> Dancer
> > app exits); that isn't always reliable, however.
> >
> > CGI::Session's own docs state:
> >
> > "As a last resort, CGI::Session will automatically call flush for you
> just
> > before the program terminates or session object goes out of scope.
> Automatic
> > flushing has proven to be unreliable..."
>
> This has bitten me on more than one occasion.  If you want to be sure your
> changes are being saved, an explicit call to flush is a very good idea.
>
> Olaf
> --
> Olaf Alders
> olaf at wundersolutions.com
>
> http://www.wundersolutions.com
> http://twitter.com/wundercounter
>
> 866 503 2204 (Toll free - North America)
> 416 944 8306 (direct)
>
> _______________________________________________
> 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/20110518/672e8cd3/attachment.htm>


More information about the Dancer-users mailing list