Hello,
I have one simple login service implemented in a
servlet.
here i get the session id for this servlet context. To authenticate user later in other service, i have other method which matches the session id generated at after login, with currentSessId = request.getSession(false).getId();
where, validateSession method matches currentSessId with sessionId dat was generated at login time (which comes through URL request).
This approach is working fine when i access the this servlet through ip, means
http://192.168.5.9:8080/MyProj/MyServlet?_service=login&_param={%27username%27:%27admin%27,%20%27password%27:%27admin%27}
But when i access application through domain, it is creating new session Id every time i make the request.
http://local.myproj.com/MyServlet?_service=login&_param={%27username%27:%27admin%27,%20%27password%27:%27admin%27}
Please advice me what is going wrong here?