update the flash from using cookies to using session for storage