Can I assign multiple cookies in config.php?

LPH

Well-known member
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?
 
Top Bottom