User Tools

Site Tools


libraries:cookiehandler:cookiehandlerclass:deletecookie

CookieHandler::DeleteCookie()


Definition

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

void DeleteCookie ()

Exceptions

  • CookieHandlerException:EC_WRITEERROR (103)
    The neccessary data to delete the cookie could't be written

Example

$Cookie = new CookieHandler("Testcookie");
 
try 
{
   $Cookie->DeleteCookie();
}
catch (CookieHandlerException $e)
{
   // [...]
}  
libraries/cookiehandler/cookiehandlerclass/deletecookie.txt · Last modified: 2022/12/13 13:03 by michael.pohl