How to destroy a session with jsp

0

Hello friends, how would I like to solve a question with jsp and servlets, how could I destroy a login with servlet for a web page?

    
asked by Dan Hermes Reyes Osnaya 26.11.2017 в 21:48
source

1 answer

0

This gets the session variables created and removes them.

request.getSession().invalidate();

If you control the login with a variable, this is the easiest way. In any case, if we could see your code and as valid that the user is logged in, we can give a more adequate response.

    
answered by 27.11.2017 в 10:53