Welcome Guest, Not a member yet? Register   Sign In
Using flashdata after redirect?
#14

(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.
Reply


Messages In This Thread
Using flashdata after redirect? - by JayAdra - 11-17-2015, 12:48 AM
RE: Using flashdata after redirect? - by arma7x - 11-17-2015, 01:04 AM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 01:08 AM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 02:21 AM
RE: Using flashdata after redirect? - by Sentro - 11-17-2015, 04:41 AM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 07:34 AM
RE: Using flashdata after redirect? - by Bhavesh - 11-17-2015, 05:33 AM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 06:49 PM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 05:28 PM
RE: Using flashdata after redirect? - by JayAdra - 11-17-2015, 09:15 PM
RE: Using flashdata after redirect? - by flubadub - 04-22-2016, 11:10 PM
RE: Using flashdata after redirect? - by Mariya - 03-10-2018, 01:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB