Skip to Content
author's profile photo Former Member
Former Member

What is the differn between IPortalComponentSession & HttpSession Object ?

What is the difference between IPortalComponentSession and HttpSession as both of them can be used for storing objects in user's session?.When do we use each of these objects.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2005 at 07:33 AM

    Hi,

    The component sessions is per user, per (browser) session, per component ie iView specific. The HTTP session is per user, per (Browser) session and as such can be used to pass data between iViews.

    If you simply want to store state over iView refresh then use the component session, if you want to pass objects between iViews (even on different pages) then use the HTTP session.

    Both suffer from session time out obviously.

    P.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 06, 2005 at 07:49 AM

    IPortalComponentSession - scope is with in that component in that session.

    HTTPSession - scope is valid for the life time of that session.

    Example: data in a bean has been put in IPortalComponentSession scope, you are accessing the component(C1) in that session, later you access some other component(C2) in the same session. You come back to the Component C1, the value is refreshed.

    If the same thing has been put in HTTPSession scope, the value still remains. You can try out with a example by putting a bean in IPCsession and HTTPSession.

    Regards

    Senthil

    (If you are happy with the solution reward points)

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.