[Dancer-users] Custom Session Handler issues
J. Bobby Lopez
jbl at jbldata.com
Wed May 18 17:37:31 CEST 2011
Hi all,
I've been trying to track down the root of a problem I'm having with Dancer,
and a custom session handler that I am using.
I've been told (several IRC discussions, and scouring the Dancer docs) that
unless I specifically enable sessions within dancer (either simple or YAML),
that no session handling code gets initialized by default in Dancer.
However I'm finding that something is preventing my CGI::Session files from
being written to disk, as they are in my other non-dancer applications using
code similar to the following:
http://pastebin.jbldata.com/m2571aaf0
This isn't the precise code I'm trying to use in my application, but has
been simplified in order to provide the same results without a lot of noise.
The code defines that the CGI::Session driver writes session files to
'/tmp', however no session files are written there. Running this app, you
can clearly see that the custom session handler is working when you run the
application from the command line (e.g, 'perl dancer-sessiontest.pl'), and
visit the application in a browser using the '/' or '/dump_session' routes.
If these files are not written to the directory I've specified, then likely
they are being stored in memory, but how and why is it doing that if Dancer
does not do any session handling by default? As you can see, I'm using a
very skeletal, single file Dancer application, which does not attempt to
load any of Dancer's session handling modules.
Can anyone explain what is happening here, and how to get my session files
handled correctly?
Thanks very much for any assistance,
-Bobby
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.backup-manager.org/pipermail/dancer-users/attachments/20110518/15762e13/attachment.htm>
More information about the Dancer-users
mailing list