flash and redirects

35 views
Skip to first unread message

Sebastian

unread,
Jun 29, 2010, 5:43:21 AM6/29/10
to Limonade
Hi.

Short question: Why are flashs (?) only surviving one page request?
Why isn't it only swept, when accessed? I searched pretty long for a
bug, which actually wasn't one. Flash messages were not displayed.
Reason: There is (was) a redirect in-between.

I would prefer longer living flashs ;) .

Greetings

Sebastian

Baglan

unread,
Jun 29, 2010, 7:21:29 AM6/29/10
to limo...@googlegroups.com
I think Flashes were designed just like in the Rails - they are, essentially, session parameters which survive only one request.

That makes a lot of sense from the perspective of separating producing Flashes and consuming them (you can't be sure that Flash will ever be consumed, so if you keep a Flash until it is consumed, you may end up with a situation where you, for example, display an incorrect message).

If you need long-lasting Flashes you can use sessions.

-Baglan

> --
> You received this message because you are subscribed to the Google Groups "Limonade" group.
> To post to this group, send email to limo...@googlegroups.com.
> To unsubscribe from this group, send email to limonade+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/limonade?hl=en.
>

Sebastian

unread,
Jun 29, 2010, 8:44:50 AM6/29/10
to Limonade
> I think Flashes were designed just like in the Rails - they are, essentially, session parameters which survive only one request.
>
> That makes a lot of sense from the perspective of separating producing Flashes and consuming them (you can't be sure that Flash will ever be consumed, so if you keep a Flash until it is consumed, you may end up with a situation where you, for example, display an incorrect message).

Ok, makes sense. Thanks.

Sebastian
Reply all
Reply to author
Forward
0 new messages