![]() |
Get data from cookie on subdomain with Codeigniter - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Get data from cookie on subdomain with Codeigniter (/showthread.php?tid=68428) |
Get data from cookie on subdomain with Codeigniter - branecko - 07-10-2017 I already checked couple threads here but I was not able fix my problem. I have 2 apps:
Code: session_set_cookie_params(
Code: $config['sess_driver'] = 'files'; I will add an item to cart on www.mydomain.com. Data are stored in cookies under cookie_name. Then I open sub.mydomain.com to check if data are shared. In chrome dev tools under Application/Cookies I can see that value of cookie_name is same on both domains. Problem is I am not able to get this data on subdomain with Codeigniter (using $_SESSION or $this->session->userdata();). It returns array with only item [__ci_last_regenerate]. I created sample file on sub.mydomain.com/test.php where I am able to get data from session using php without codeigniter => so data are available there...But I need to get them with Codeigniter. Any ideas? |