NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Backwards? (Score:1)
It seems like you got what flash and stash are backwards, from the docs in the Session plugin. You say flash lasts for one request. This is what the doc for it says:
"Think of it as a stash that lasts for longer than one request, letting you redirect instead of forward."
Am I misunderstanding?
--fREW
http://blog.afoolishmanifesto.com
Re: (Score:1)
The stash lasts for the duration of a single request.
The flash persists after the request and becomes part of the stash in the next request – but only once (unless you persist the data again).
The terminology is kinda confusing, I guess.
Re:Backwards? (Score:2)
Actually, it's not quite "persist the data again". Flash is only preserved if the data changes. Thus, if you need to preserve the same data across multiple requests, you need to use the keep_flash() method.
Reply to This
Parent