ibdknox/noir — Issue #68: flash sessions: key not accessible if modified
Author: Raynes
Created: 2011-12-31 17:40:26+00:00
State: open

If you put a key `:foo` into the flash session and then add a different value to `:foo` on the next request, trying to access `:foo` within the same request results in the `:foo` value from the original request.

Looking at the code, this is because `flash-get` looks for a key in incoming first and only looks in outgoing if it doesn't exist there. Was this on purpose? It seems like it would make more sense to prefer outgoing, since it will always have the latest values of keys.