How to send and get data by using flash messages in the codeigniter.This is simple and passing data using array.But if you reload/refresh the page, your data may not be displayed.Because data passing using flash message.However you can pass huge of data through this method.

You can get this details like this.

Same way as simply,
In the controller.

View file

If your flash messages are not working, then you must read this post.
Codeigniter flash message doesn’t work