<form action="<%=request.getContextPath()%>/login" method="post">
Email: <input type="email" name="email">
Password : <input type="password" name="psw">
<button type="submit" value="submit">Submit</button>
</form>
I have this login form.After submitting the values, it goes to the controller where the user authentication takes place and after authentication it moves to the home page.I want to generate a session id every time a user login so that, that user id can be used to get other information of the user(i.e some details like mobile no,address etc according to the need) that were filled during the registration. I am doing all this using jsp and mvc. Thanks in advance.