hope this helps.
In your href tag, put another php page and in that php page, do a session destroy and you can redirect using header() once the session is destroyed.
<a href= "logout.php"><?php echo WORDING_LOGOUT; ?></a>
In your logout.php
<?php
session_start();
if(session_destroy()){
header("Location: index.php");
}
?>