CookieHandler::SetName()


Definition

Sets the name of the cookie to write/read, if it should differ from the one set in the Constructor __construct().

void SetName ( $Name )

Parameters

Exceptions

Example

$Cookie = new CookieHandler("Testcookie");
$NewName = "Testcookie2";
 
try 
{
   $Cookie->SetName($NewName);
}
catch (CookieHandlerException $e)
{
   echo "Name couldn't be set!";
}