Hi All,
This is my code.
public class SessionIdServlet extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
response.setContentType("text/html");
PrintWriter pw = response.getWriter();
HttpSession session = request.getSession();
String id = session.getId();
pw.println("Session Id is : " + id);
System.out.println(id);
}
}
when i am calling this
servlet through Internet Explorer that time i am getting one session id and open one more Internet Explorer and run this servlet that time i am getting different Session Id.
But my problem is this is not working like that in Google Crome.
Advanced Thanks.
Regards,
MahiRanga.