Discussions

Web tier: servlets, JSP, Web frameworks: Patterns for Session Value Handling

  1. Patterns for Session Value Handling (3 messages)

    Group -

    Do we have any patterns or best practices available for handling sessions values in a web application. We maintain 100s of session values when we navigate between page to page.

    -Jamil.
  2. Patterns for Session Value Handling[ Go to top ]

    Group -Do we have any patterns or best practices available for handling sessions values in a web application. We maintain 100s of session values when we navigate between page to page.-Jamil.

    Don't use large object graph to capture your 100's of values. (for websphere atleast; it boosts performance if you don't)

    http://www-306.ibm.com/software/webservers/appserv/ws_bestpractices.pdf
  3. Patterns for Session Value Handling[ Go to top ]

    WOW, Try to limit the number of Objects in the session! are you using a MVC product?
  4. Patterns for Session Value Handling[ Go to top ]

    We don't use an MVC Product, but follow MVC Architecture. At any point we have 100 Session variables/Values maintained ( Eg: PREV_PAGE, PAGE_ID ). As of now the setting & getting of these Session variables are done in plain JSPs. I am wondering, if we have any better approach like moving this part to a plain POJOs by passing the HTTPSession object to it or any other ways.