httpSession.removeAttribute 移除header中的属性 @Override public void logout() { httpSession.removeAttribute('xxx'); } 等同于php中的 header_remove('xxx');