• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

multiple session for single web app

 
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 437
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, Swapnel. I think it is not possible.
 
Ranch Hand
Posts: 331
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 437
Oracle Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...



 
Ranch Hand
Posts: 664
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
He's giving us the slip! Quick! Grab this tiny ad!
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic