Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

multiple session for single web app

 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guyz,

Is it possible to create the multiple session for the single web application.
If yes how we can maintain those.



thanks
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Swapnel. I think it is not possible.
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
swapnel surade wrote:Hi guyz,

Is it possible to create the multiple session for the single web application.


What do you mean by this?
 
Chinmaya Chowdary
Ranch Hand
Posts: 434
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, Vishwanath. I think what Swapnel asking is, can a web application create multiple sessions? If yes, how we can maintain sessions?

We have 3 methods to create session objects, request.getSession(), request.getSession(true)(these two are programatically same) and request.getSession(false). With any of these methods, we cann't create multiple session objects.

Suppose, if a servlet creates multiple session objects, they must have different sessionid's. In the response header, multiple cookie entries present. Again in request header multiple cookie entries present. Can you please tell me, in what situation's we need multiple session objects? Thankyou.
 
pawanj kumarj
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Guyz,
As per my understanding, diff-diff users logins to a website and server maintains diff-diff session for each user.
So i guess by that way we can maintain multiple session for a single web application.
 
Vishwanath Krishnamurthi
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

the term "multiple-sessions" is a little vague and ambiguous... I think it should mean this case:

A session is maintained in WebServerA (say with request1 with userA). Then if the request2 from the same user goes to WebServerB- Now session migration takes place and we have a single user session maintained in multiple servers...



 
Nabila Mohammad
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Multiple Sessions might also mean that different users are acessing the same serlvet.
That means different (threads) request are being created for the same servlet and different session is maintined for each user.
Just what i think.. dont know if I am right..
 
swapnel surade
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
multiple session menas, for single web application there will be more than 1 session available.
I was just curious for the concept as I read it in the book.
but I think I misunderstood it and took wrong meaning.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic