CookieHandler::DeleteCookie()


Definition

Removes the current cookie at the end of the session and deletes all related data from storage.

void DeleteCookie ()

Exceptions

Example

$Cookie = new CookieHandler("Testcookie");
 
try 
{
   $Cookie->DeleteCookie();
}
catch (CookieHandlerException $e)
{
   // [...]
}