@Override
public void logout() {
  httpSession.removeAttribute('xxx');
}

等同于php中的

header_remove('xxx');

相关文章: