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

I am having an issue with my app. I am using two different Codeigniter addons, codexworld's "user registration and login" and Grocery Crud. My app starts out allowing a user to login with "user reg and login". This happens in controller A. Once they login I store their userid in a cookie using the CI cookie helper. Then I redirect to controller B which contains the Grocery Crud. I try to read the userid cookie that I set with controller A, in a function in controller B,  but it is blank. 

I am loading the cookie helper in each controller with 

$this->load->helper('cookie')

Does anyone know how I can get the userid from controller A to be used by functions in controller B? I am out of ideas of how to save the USERID in a global session variable for this user. 
proof that an old dog can learn new tricks
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