Flashdata Helpers

The Flashdata Helpers are lightweight functions for managing flash messages - temporary session-based notifications typically used to display success or error messages after form submissions or other user actions. Flash data is automatically cleared after being displayed, ensuring messages appear only once.

flashdata()

Outputs a flash message stored in the session, wrapped in specified HTML tags.

set_flashdata()

Sets a flash message in the session.