Stories
Slash Boxes
Comments
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

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • by frew (9054) on 2009.08.20 8:37 (#70202) Homepage

    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
    • 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.

      • 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.