Flashdata

CodeIgniter supports "flashdata", or a kind of session data that will only be available for the next server request, and are then automatically cleared. This is in contrast to userdata function which is available in any request. Flashdata can be useful though! Typically in informational or status messages (for example: "record 2 deleted"), flashdata is the best suit.

To add flashdata:

$this->session->set_flashdata('key', 'value');

You can ...