(11-17-2015, 09:15 PM)JayAdra Wrote: UPDATE: I found some random old code I had in my app which messed with the flashdata - I don't remember putting it there, and looking at it now, I have no idea what purpose it was serving...
Anyway, point is I got it working now! Thanks for the suggestions.
Now just to figure out how to get it working after destroying the session...
Any chance I could borrow that "random old code" that helped with your problem losing flashdata after redirect()?
I'm having exactly the same issue as you're describing. There is an "exit;" in the CI's redirect function that is breaking flashdata. It works fine if, instead of redirect(), you use, for example, header('Location: '.base_url().'blah') with no following exit. But the exit is good practice. It **should** be there.