• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Can I assign multiple cookies in config.php?

LPH

Well-known member
#1
Hi,

I'm trying to figure out what is allowed in the library/config.php file?

Something along the line:

PHP:
if ($_SERVER['HTTP_HOST'] == 'www.whatisnew.com') {
 
$config['cookie'] = array(
'prefix' => 'xs1_',
'path' => '/',
'domain' => '.whatisnew.com'
);
 
} else {
 
$config['cookie'] = array(
'prefix' => 'xs1_',
'path' => '/',
'domain' => '.tuxreportsnetwork.com'
);
 
}
I know this looks goofy but is something like this possible?