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

what is the difference between IPortalComponentSession and HttpSession?

Can Any One answer my question

1)What is the difference between IPortalComponentSession and HttpSession?

2)Is both IPortalComponentSession and HttpSession are Same. I mean both are can be used interchangeabally?

3) If both IPortalComponentSession and HttpSession are not same , whenis the IPortalComponentSession is used and when is HttpSession is used? can you please explain the specific functionality of each as per as the portal development is considerd

Thanks and Regards

Prasad.Y

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2005 at 12:55 PM

    Hi Prasad,

    I have used HTTPSession to interchange data between 2 AbstractPortalComponent's(APC) within the same project.

    For ex: To pass a Vector from APC1 to APC2,

    In APC1:

    <b>request.getComponentSession().getHttpSession().putValue("SAI",vectorObj);</b>

    In APC2, to get the vector:

    <b> Vector v = (Vector) request.getComponentSession().getHttpSession().getAttribute("SAI");

    </b>

    Hope it helps.

    <b>Regards,

    Sai Krishna.

    </b>

    PS: please do award points if it helps you. :). Ciao.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2005 at 03:54 PM

    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

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.