「Spring入門」invalidate()でセッションを破棄するサンプル
サンプルコード下記
protected void userLogout() {
HttpSession session = this.servletRequest.getSession(false);
if (session != null) {
session.invalidate();
}
}
Coding Changes the World
サンプルコード下記
protected void userLogout() {
HttpSession session = this.servletRequest.getSession(false);
if (session != null) {
session.invalidate();
}
}