CodeIgniter Forums
session problem - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: session problem (/thread-2181.html)



session problem - El Forum - 07-20-2007

[eluser]Unknown[/eluser]
I have a site: http://my.host.com
I have a domain: mydomain.com

My registrar set url forwarding mydomain.com -> my.host.com

I set config.php:
Code:
...
$config['base_url'] = "http://mydomain.com/";
...
so the session isn't working.

If I set config.php:
Code:
...
$config['base_url'] = "http://my.host.com/";
...
the session is working.

I think, have to set $config['cookie_prefix'], $config['cookie_domain'] and $config['cookie_path'] , but I don't how to?

ioros