PicoContainer
  1. PicoContainer
  2. PICO-324

Session Creation should be optional

    Details

    • Type: Wish Wish
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.5
    • Fix Version/s: 3.0
    • Component/s: Web-Core
    • Labels:
      None
    • Number of attachments :
      0

      Description

      Currently, PicoServletContainerFilter forces use of a session. To me, this isn't necessarily a good practice for high scaling systems.

      As far as I can see, there are a few things that should happen with this:

      1 - We split things up into two filters. One that creates the session container, and one that creates the request. This would allow Session Nazi's to bypass the session container altogether.

      2 - We do some sort of lazy initialization so if we have:

      pico.as(WebCharateristics.SESSION).addComponent(MyObject.class);
      

      Then when:

      //No Session
      assert  request.getSession(false) == null;
      
      pico.getComponent(MyObject.class);
      
      //Session Created
      assert request.getSession(false) != null;
      

        People

        • Assignee:
          Unassigned
          Reporter:
          Michael Rimov
        • Votes:
          0 Vote for this issue
          Watchers:
          1 Start watching this issue

          Dates

          • Created:
            Updated:
            Resolved: