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
Can i have two sessions inside a single file
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi
I am having a
JSP
page .
In that i am having two sessions .
For example :
HttpSession hss = request.getSession(true); hss.setAttribute("Nmae","username"); HttpSession Pnetsession = request.getSession(true); Pnetsession.setAttribute("reconf","reconfigura");
If i do so i am loosing data inside my firsts session that is hss (Means hss.getAttribute("Name") returns me null in next page)
Please let me know if this is wrong
Save India From Corruption - Anna Hazare.
Kapil Mishra
Greenhorn
Posts: 25
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
According to my knowledge, you can not handle two session on a application from same client at a time...
SCJP 5,SCWCD 5
Ravi Kiran Va
Ranch Hand
Posts: 2234
I like...
posted 14 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
okay , thank you
Save India From Corruption - Anna Hazare.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
doubts on session creation
Is it possible to create more than one HttpSession in our Application
how to get same session object in a multi page form processing.
Data set inside the session is lost when response.sendRedirect has been used
problem in session tracking inside my request processor....
More...