public function getCookieName()
{
$cookieName = $this->amcConfig->getString('cookiename', 'AuthMemCookie');
if (!is_string($cookieName) || strlen($cookieName) === 0) {
throw new Exception("Configuration option 'cookiename' contains an invalid value. This option should be a string.");
}
return $cookieName;
}