Welcome Guest, Not a member yet? Register   Sign In
Session Destroy and Flashdata
#4

(This post was last modified: 10-31-2021, 09:34 PM by manager.)

(10-31-2021, 12:51 PM)donpwinston Wrote:
(10-31-2021, 01:16 AM)InsiteFX Wrote: Because you desroyed the session you need to recreate the session again first.

But my redirect's page controller creates the session in the constructor.
You must start the session BEFORE setFlashdata, not from your redirected page, because at this time there is no session.

just add session_start() right after destroying it (and before setFlashdata())
Reply


Messages In This Thread
Session Destroy and Flashdata - by donpwinston - 10-30-2021, 03:17 AM
RE: Session Destroy and Flashdata - by InsiteFX - 10-31-2021, 01:16 AM
RE: Session Destroy and Flashdata - by manager - 10-31-2021, 09:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB