What is HttpSession session = request.getSession ();
I'm new to programming.
This time, I will output about .getSession.
Q1: What is the .getSession method?
A: This is the process to start a session.
(Example) After the user login authentication process is completed.
Q2: What is a session?
A: When you access a program, it is a series of interactions that take place in a single access.
Q1: If there is a process to start a session, is there a process to end it?
A: I need it.
(Example) After the user logs out
[How to write]
session.invalidate();
Only this.
- If you have any mistakes, please let us know in the comments. *