# cache session here instead of flushing/reading from cookie all the t
+ime
my $SESSION = undef;
I don’t know the request cycle Dancer uses or the server you’re running on but I would guess if you have a persistent process, that up there is the problem. It’s not reset in init like their other two “cache” vars. Try adding this to lib/Dancer/Session/Cookie.pm and see if the problem rears its head again–
sub init {
my ($self) = @_;
$SESSION = undef; # <- new bit.
You should file a ticket against this issue if you really are seeing it and you should include this info or a link to the thread if it helps.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.