Welcome Guest, Not a member yet? Register   Sign In
aren't cookies global?
#11

The redirect function is as it should be and url_helper.php is not corrupt - at least the redirect function (as shown) is not.

"refresh" vs "location" makes no difference on what ultimately happens. redirect() tells to browser to "go to this URL" and the call to exit tells the server to stop executing the current script. Once the script stops then the server forgets all about what it just did.

When the browser is asked for a URL (in this case due to the redirect) it sends any cookies related to that URL. When a valid session cookie is seen during the session class load-up any related session data will be recovered.

It is not clear how/when you are loading the session class. But since the session data is not recovered then sessions are not configured correctly. The config problem could be either the session and/or cookie $config items.

Share those config items and maybe someone will spot a problem.
Reply


Messages In This Thread
aren't cookies global? - by richb201 - 11-09-2017, 02:24 PM
RE: aren't cookies global? - by neuron - 11-09-2017, 11:40 PM
RE: aren't cookies global? - by richb201 - 11-10-2017, 01:51 AM
RE: aren't cookies global? - by dave friend - 11-13-2017, 09:47 AM
RE: aren't cookies global? - by InsiteFX - 11-10-2017, 05:12 AM
RE: aren't cookies global? - by richb201 - 11-11-2017, 11:28 AM
RE: aren't cookies global? - by PaulD - 11-11-2017, 12:29 PM
RE: aren't cookies global? - by richb201 - 11-11-2017, 12:43 PM
RE: aren't cookies global? - by PaulD - 11-11-2017, 12:55 PM
RE: aren't cookies global? - by richb201 - 11-13-2017, 10:56 AM
RE: aren't cookies global? - by dave friend - 11-13-2017, 02:42 PM
RE: aren't cookies global? - by richb201 - 11-13-2017, 03:15 PM
RE: aren't cookies global? - by dave friend - 11-13-2017, 06:29 PM
RE: aren't cookies global? - by richb201 - 11-14-2017, 03:53 PM
RE: aren't cookies global? - by InsiteFX - 11-15-2017, 03:50 AM



Theme © iAndrew 2016 - Forum software by © MyBB