Implementation of flash messages using cookies instead of session.