This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

What is the difference between Request Session and Portlet Session?

 
Romi Dave
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi can someone please explain whats the difference between a Request Session and Portlet Session. And what is the scope of each session and how are they related?

Thanks
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no such thing as a "Request Session".

In a servlet app, there are various scoped objects to which you can bind your own objects. These include Page, Request, Session, and Context.

For portlet issues, you might be better off asking in our Portlets forum.
 
Romi Dave
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Me too thought the same but got confused with few things. To be more specific... in my application while retriving the session id i noticed that I can get id in two ways. One was to use "request.getRequestedSessionId()" and the other being "request.getPortletSession().getId()" and both being two unique ids everytime so dont know exactly what they are. Could you please explain or guide me.

Thanks,
 
Tim Holloway
Saloon Keeper
Posts: 18304
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think you're confusing the Http Session with PortletSession. PortletSession is part of the infrastructure that keeps different portlets in a portlet container from losing their internal state as you pop between different portlets and Java's HTTP scope doesn't really apply for that sot of world-view. But for a more intelligent explanation, ask in the Portlet forum.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moving to the Portlets forum.
Seems like a better fit.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic