Is it considered good practice to use the flash to pass temporary data
between pages? Items such a id’s for model objects in case I want to
retrieve the object that was used in the previous page. Or, should I
instead use the session for this purpose, then clear the value out of
the session when it’s no longer needed?
It seems that using the flash works okay and I get the benefit of
having it automatically clear when it’s no longer needed. However, I’m
not sure if there are caveats to using the flash.