I think you should use the session's flash api instead