Welcome Guest, Not a member yet? Register   Sign In
Site wide session problem
#1

[eluser]benjamin[/eluser]
Hi all,

I have a problem getting my session to work across multiple domains. Basically I set up a virtual subdomain using .htaccess, so sub.domain.com will be re-written to:

sub1.domain.com => domain.com/foo
sub2.domain.com => domain.com/foo
sub3.domain.com => domain.com/foo

The problem is that session data set with sub1.domain.com is not accessible via domain.com/bar

I know that this has been discussed in various posts, and I have tried all recommended solutions that I could find...none of them worked.

Specifically, I tried setting....
$config['cookie_domain'] = "127.0.0.1";
$config['cookie_domain'] = ".mydomain.com";
$config['cookie_domain'] = "";
$config['cookie_domain'] = "mydomain.com";
$config['cookie_domain'] = // my server's IP address
$config['cookie_domain'] = "somename.local";

Tried in Chrome, Firefox and Safari - same problem with all of them.

Any thoughts? Thanks.




Theme © iAndrew 2016 - Forum software by © MyBB