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

[eluser]Unknown[/eluser]
Can we send data with Redirect() function and how to access it .

El Forum

[eluser]InsiteFX[/eluser]
Look in the CodeIgniter User Guide Session flashdata!

InsiteFX

El Forum

[eluser]Sudz[/eluser]
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").