Flash Data Post

0

Good afternoon, guys. I'm not getting a flash date for Post. When I load my view I put a bank info on flash date:

 $this->session->set_flashdata('ticket_id',$dados[0]->caseId);

I have a modal in this view that sends the information via post to the controller "respond".

In this controller, I try to retrieve the flash date, but it is always empty.

If I use userdata it works perfectly, with flash date no.

My question is if per post does the flash date persist, or can it only be retrieved after a redirect?

Thank you

    
asked by anonymous 09.09.2018 / 21:42

1 answer

0

Beast, according to the CodeIgniter 3.1.9 documentation.

  

CodeIgniter supports "flashdata", or session data that will only be available for the next request, and is then automatically cleared.

That is, the information set in flashdata will only be available on the next request and will be automatically deleted.

link

I think in this case the right thing is to use userdata .

    
10.09.2018 / 02:05