I am creating session object in my servlet program ,, but when I make a request to a servlet by opening 2 browser it is taking as only one session object.. It is happening only in my latop, in other places if I make a request from 2 browser 2 session objects are getting created, I am using session.getId() to check the ID of session,
Internally JSESSIONID cookie is passed in each request to Web Server to identify the session object exclusively allocated for the Client...
If you open a new window or new tab from the existing browser parent window, same JSESSIONID is passed... So it will refer to the same session object...
When you do open a separate new Browser window, a new request is created to the web server and different JSESSIONID is created by Web server and sends as Cookie to the Client...Then, JSESSIONID cookie is sent at subsequent requests to the Server
sagar shiraguppi wrote:I am creating session object in my servlet program ,, but when I make a request to a servlet by opening 2 browser it is taking as only one session object.. It is happening only in my latop, in other places if I make a request from 2 browser 2 session objects are getting created, I am using session.getId() to check the ID of session,
Please help me thanks
I agree with David. But, why is this? Is this really happening?
yes it is happening with only my laptop, i tried with other laptop who are running on Vista, but only in my laptop this problem, other than this program no issues with any other program, I m still not clear why not only one session is created when I open two browser of same vendor and send a request, If I open say one chrome browser and other IE and sends the request two session are getting created understandably.. But issue is with same two browser and only one session object..
Post by:autobot
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
a bit of art, as a gift, the permaculture playing cards