This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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

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
It's not a secret anymore!