darren_chambers Posted March 7, 2011 Share Posted March 7, 2011 Hi, I have WHMCS installed on a shared hosting server, the client area is under under a subdomain like this: members.mysite.co.uk I have created some custom pages under: mysite.co.uk Everything works as it should except I would like to track login sessions across between the main domain & the subdoman. The most sensible item I saw suggested setting the following in the php.ini: session.cookie_domain = .mysite.co.uk Sadly this is not an option as I have no control over php.ini in this case. I am sorry to ask because this seems to be a much talked about topic & even though I have tried most of the suggestions talked about on these forums I am still unable to make this work. Hopefully somebody will know how to achieve this. Many thanks, Darren 0 Quote Link to comment Share on other sites More sharing options...
jeremyhaber Posted March 7, 2011 Share Posted March 7, 2011 You can override the default PHP settings with .htaccess or the php ini_set function: http://php.net/manual/en/function.ini-set.php If you are using CPanel you can also create a custom "php.ini" file in your public_html directory. 0 Quote Link to comment Share on other sites More sharing options...
darren_chambers Posted March 8, 2011 Author Share Posted March 8, 2011 Hi Jeremy, You solved my problem - thank you very much. For anyone else with a similar issue, I added the following to the .htaccess file under public_html <IfModule mod_php5.c> php_value session.cookie_domain .mydomain.co.uk </IfModule> Cheers, Darren 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.