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

I humbly request some assistance.

I am setting some flashdata just prior to using a "redirect" and the flashdata is not saving/showing up after the redirect.

My code is as follows:

PHP Code:
$this->session->set_flashdata('message''test');
redirect('login''refresh'); 

On the login page though ("login" controller function), the flashdata isn't showing up. Here are some things to note:
  1. Everywhere else I use flashdata works fine (not in conjunction with redirect)
  2. My sessions and cookies all are working fine (apart from this issue)
  3. I've tried using keep_flashdata() everywhere I can think to put it and it doesn't help
  4. I'm not destroying any sessions prior to redirecting
  5. I'm using CodeIgniter v3.0.3 (latest)
  6. I thought maybe the "redirect" was taking more than one request, but am unsure how to test that? It should only be one request.
Any ideas or possible solutions would be greatly appreciated.

Thanks!
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