scottcowan Posted April 18, 2010 Share Posted April 18, 2010 I'm building a site with whmcs in a subdir and another site in the root dir whmcs uses the subdir as the cookie path for WHMCSUID,WHMCSPW so the root site can't access the cookies in php as far as I know. is there an addon out there so I can change the cookie path, I noticed Kayako LoginShare does this but I can't see how to get it. Thanks 0 Quote Link to comment Share on other sites More sharing options...
kmar Posted April 23, 2010 Share Posted April 23, 2010 If you want to be able to pass session data between subdomains you need to add the following to the php.ini file. session.cookie_domain = .domain.com Note the dot before your domain. This is required. If you are unable to modify the the php.ini file you can add the following before the session.start() function on any page which creates the session cookie. ini_set("session.cookie_domain", ".domain.com"); 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.