This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

2 session object

 
kundan varma
Ranch Hand
Posts: 323
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
Can we have 2 session object in JSP?? Can we create 2 sessions.
Thanks,
kundan
 
Krithika Srinath
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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].

Regards,
~Krithika
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic