PHP and WebView - Cookie doesn't are the same
PHP Snippet 1:
CookieManager.getInstance().cookieManager.flush();
PHP Snippet 2:
setcookie("USER_ID", 0, time()-3600);
unset($_COOKIE['USER_ID']);
header('Location: ./index.php');
PHP Snippet 3:
<?php
session_start();
session_destroy();
// thats all
// you can unset all php sessions if you wants
?>