Welcome Guest, Not a member yet? Register   Sign In
Flashdata and refresh
#8

[eluser]WanWizard[/eluser]
For cookies to work they need to be send to the browser, so that they can be picked up by the next request.

In your case, with the user clicking on a link, the browser does a GET request when the user clicks the link, thus never receiving the updated cookie. When you redirect, you send a response to the browser telling it to fetch a new URL, which would deliver the cookie.

Switch to database sessions so the session data is stored server side, which solves this problem.


Messages In This Thread
Flashdata and refresh - by El Forum - 07-09-2010, 10:21 AM
Flashdata and refresh - by El Forum - 07-09-2010, 11:04 AM
Flashdata and refresh - by El Forum - 07-09-2010, 11:36 AM
Flashdata and refresh - by El Forum - 07-09-2010, 12:52 PM
Flashdata and refresh - by El Forum - 07-09-2010, 01:19 PM
Flashdata and refresh - by El Forum - 07-10-2010, 04:15 AM
Flashdata and refresh - by El Forum - 07-10-2010, 09:40 AM
Flashdata and refresh - by El Forum - 07-10-2010, 10:18 AM
Flashdata and refresh - by El Forum - 07-10-2010, 11:22 AM
Flashdata and refresh - by El Forum - 07-10-2010, 12:14 PM
Flashdata and refresh - by El Forum - 07-10-2010, 01:34 PM
Flashdata and refresh - by El Forum - 07-10-2010, 05:33 PM
Flashdata and refresh - by El Forum - 07-11-2010, 12:53 AM
Flashdata and refresh - by El Forum - 07-11-2010, 02:54 AM
Flashdata and refresh - by El Forum - 07-13-2010, 01:06 PM
Flashdata and refresh - by El Forum - 08-02-2010, 01:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB