Welcome Guest, Not a member yet? Register   Sign In
still losing session userdata across a redirect
#26

(12-05-2017, 12:09 PM)PaulD Wrote: Does it help if you use 'refresh':
PHP Code:
$_SESSION['item'] = 'xyz'
redirect('somewhere''refresh'); 

I know this will not help you, but I have never had a problem with session setting and redirecting. In fact I use it quite often with flash data. However, 'refresh' might be completely irrelevant to your problem, this is not an area I claim any expertise in. Sorry.

Paul

In the context of redirect() 'refresh' vs 'location' should be irrelevant. Both options produce redirect headers but the 'refresh' option can be time-delayed. In CI however, the 'refresh' option sets the delay to 0 (zero) making the refresh header effectively the same as the location header.

However, I don't think that 'Refresh' is actually part of the http spec But AFAIK, it is supported by most (all?) browsers. Conceivably, results could vary by browser. In that light maybe 'refresh' is best avoided.
Reply


Messages In This Thread
RE: still losing session userdata across a redirect - by dave friend - 12-05-2017, 01:31 PM



Theme © iAndrew 2016 - Forum software by © MyBB