CodeIgniter Forums
share session accross sub domain with different ip-address - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: share session accross sub domain with different ip-address (/showthread.php?tid=43779)



share session accross sub domain with different ip-address - El Forum - 07-22-2011

[eluser]phpmonster[/eluser]
Not sure why the hosting company decided to assign a separate IP address for each sub-domain but thats causing some problems on sharing session data.

How do I share session data to my sub-domain which has a different ip than the main domain?

currently have:

$config['cookie_prefix'] = '';
$config['cookie_domain'] = '.mydomain.com';
$config['cookie_path'] = '/';