Two Laptop Bag*
The moose likes Servlets and the fly likes Can i have two sessions inside a single file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can i have two sessions inside a single file" Watch "Can i have two sessions inside a single file" New topic
Author

Can i have two sessions inside a single file

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I am having a JSP page .

In that i am having two sessions .

For example :



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

Joined: Oct 04, 2009
Posts: 25
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

Joined: Apr 18, 2009
Posts: 2234

okay , thank you
 
 
subject: Can i have two sessions inside a single file
 
Similar Threads
how to get same session object in a multi page form processing.
problem in session tracking inside my request processor....
doubts on session creation
Data set inside the session is lost when response.sendRedirect has been used
Is it possible to create more than one HttpSession in our Application