I am really struggling with this problem.
For ex. I have a login jsp page . After user logs in , I store their username and password in session object in next page.
Now if I want more than 1 user to abe able to login from same browser.
But problem is that As soon as user logs in from 2nd tab, It overwrites the information stored in session object for previous user.
How can i create different session on same browsers. so that different users can work simultaneously .Please help.
<html> <body> <form action = "next.jsp"> Name : <input type="text" name="name"> Password:<input type="text" name="password"> </form></body </html>
<% session.setAttribute("user",request.getParameter("name")); session.setAttribute("password",request.getParameter("password")); %>