CodeIgniter Forums

Full Version: How to Send data with Redirect()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

Can we send data with Redirect() function and how to access it .

El Forum

Look in the CodeIgniter User Guide Session flashdata!


El Forum

No, you can't send data with redirect because redirect uses header.

CodeIgniter supports "flashdata", or session data that will only be available for the next server request, and are then automatically cleared.
You can use this, and are typically used for informational or status messages (for example: "record 2 deleted").