Session Destroy and Flashdata |
When I execute a
Code: $session->destroy(); The flash data is not available on the redirected page. Why?
Simpler is always better
Because you desroyed the session you need to recreate the session again first.
What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(10-31-2021, 12:51 PM)donpwinston Wrote:You must start the session BEFORE setFlashdata, not from your redirected page, because at this time there is no session.(10-31-2021, 01:16 AM)InsiteFX Wrote: Because you desroyed the session you need to recreate the session again first. just add session_start() right after destroying it (and before setFlashdata()) |
Welcome Guest, Not a member yet? Register Sign In |