[Dancer-users] Custom Session Handler issues
J. Bobby Lopez
jbl at jbldata.com
Wed May 18 18:22:39 CEST 2011
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
> > object goes out of scope (which, in your example, will only be as the
> > 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
> > before the program terminates or session object goes out of scope.
> > 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 Alders
> olaf at wundersolutions.com
> 866 503 2204 (Toll free - North America)
> 416 944 8306 (direct)
> Dancer-users mailing list
> Dancer-users at perldancer.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Dancer-users