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

HttpSession in JSP

 
Shailesh Pillai
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it necessary that while doing a project using JSP we need to use Session Attributes? As a beginner, i dont know much about it. Can anyone explain with an example what's the importance of it.

In my project I do have a login page where different users will b logging in at same time. So, can v avoid using HttpSession.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why would you want to avoid using sessions?
 
Shailesh Pillai
Ranch Hand
Posts: 78
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am not at all aware of the fundamental behind usage of Sessions. Can u briefly xplain its advantages and limitations.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64631
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HTTP is a stateless protocol. The session is used to maintain state between requests.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic