Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Servlets
Search Coderanch
Advance search
Google search
Register / Login
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
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Servlets
Is it possible to create more than one HttpSession in our Application
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
What will happen if i
HttpSession sess1 = request.getSession(true);
HttpSession sess2 = request.getSession(true);
Will the Container will create two sessions for a
Thread
Request??
Bauke Scholtz
Ranch Hand
Posts: 2458
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Have you checked what HttpSession#getId() says?
Have you read the HttpSession API
doc
at any way?
http://java.sun.com/javaee/5/docs/api/javax/servlet/http/HttpSession.html
Balu Sadhasivam
Ranch Hand
Posts: 874
I like...
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Each request can be assigned only to one session !!
So the second call to request.getSession(true); will actually return the same session created in the first statement.
PavanPL KalyanK
Ranch Hand
Posts: 212
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Thanks Balu Sadhasivam ,
Hey, sticks and stones baby. And maybe a wee mention of my stuff:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
Not get the session value
how to create always new session
Why am I always getting a new session *
Doubts on session management mock questions
null value in session variable when showing not null in another page!
More...