Example usage for javax.servlet.http HttpSession invalidate

List of usage examples for javax.servlet.http HttpSession invalidate

Introduction

In this page you can find the example usage for javax.servlet.http HttpSession invalidate.

Prototype

public void invalidate();

Source Link

Document

Invalidates this session then unbinds any objects bound to it.

Usage

From source file:tarefas.controller.redirectController.java

@RequestMapping("/redirLogout.htm")
public String redirLogout(HttpSession session) {
    session.invalidate();
    return "index";
}

From source file:sample.mvc.RestDemoController.java

@RequestMapping("/logout")
@ResponseStatus(HttpStatus.NO_CONTENT)
public void logout(HttpSession session) {
    session.invalidate();
}

From source file:mvc.controller.LoginController.java

@RequestMapping("logout")
public String logout(HttpSession session) {
    session.invalidate();
    return "redirect:/";
}

From source file:gov.nih.nci.cabig.ccts.security.HttpSessionPurgeLogoutHandler.java

public void logout(HttpServletRequest request, HttpServletResponse response, Authentication authentication) {
    HttpSession session = request.getSession(false);
    session.invalidate();
    logger.debug("Logged out.");
}

From source file:com.centurylink.cloud.sdk.sample.port.adapter.web.LoginController.java

@RequestMapping(value = "/logout", method = POST)
public StatusResponse logout(HttpSession session) {
    session.invalidate();

    return new StatusResponse("OK");
}

From source file:com.r3bl.controller.LoginController.java

@RequestMapping("logout")
public String logout(HttpSession session) {
    session.invalidate();
    return "redirect:logout-sucesso";
}

From source file:logout.java

protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {

    HttpSession session = request.getSession(true);
    session.invalidate();

}

From source file:progetto.informatica.ControllerRegistrati.java

@RequestMapping(value = "/logout", method = RequestMethod.GET)
public String logout(HttpSession session) {
    session.invalidate();
    return "index";
}

From source file:de.ingrid.interfaces.csw.admin.LoginController.java

@RequestMapping(value = "/logout.html", method = RequestMethod.GET)
public String logout(final HttpSession session) {
    session.invalidate();
    return "redirect:/welcome.html";
}

From source file:userlogout.java

protected void doGet(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException {

    HttpSession session = request.getSession(true);
    session.invalidate();
    response.sendRedirect("userlogin.jsp");

}