[eluser]hyperfire[/eluser]
I'm having some trouble logging in with flexiauth installed on subdomains.
While on localhost or main domain, flexiauth works fine, but for some reason, whenever I login on a subdomain, I get the login true on the login page if I debug, but as soon as I redirect user after login to another controller, this child controller don't find the login info and kicks the user back to login page.
Let me be clear:
my.domain.com/login
$this->flexi_auth->is_logged_in() // returns true after login on login page (debugging)
my.domain.com/dashboard
$this->flexi_auth->is_logged_in() // returns false after login
Am I doing anything wrong?
I'm trying to debug it right now, as I believe it to be a issue with cookies & subdomains, but I donno yet! thanks!!
EDIT:
Ok, got it working in 3 steps:
1) edit config.php > $config['cookie_domain'] = '.domain.com'; // have to set .domain for sitewide cookies