This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes JSP and the fly likes 2 session object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "2 session object" Watch "2 session object" New topic

2 session object

kundan varma
Ranch Hand

Joined: Mar 08, 2004
Posts: 323
Hi All,
Can we have 2 session object in JSP?? Can we create 2 sessions.

Failures are practice shoots for success.
Krithika Srinath
Ranch Hand

Joined: Apr 11, 2006
Posts: 52
Hi Kundan,

When you say creating 2 sessions in a JSP, I believe you mean creating 2 session for a request. This is not possible. At any given point, a request can hold only 1 session [even though the servlet container creates multiple session's to handle multiple requests].

I agree. Here's the link:
subject: 2 session object
jQuery in Action, 3rd edition