Announcement Announcement Module
Collapse
No announcement yet.
When Should I Measure HttpSession Size Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • When Should I Measure HttpSession Size

    Can someone tell me at what point in the flow it would be the best time to measure (or attempt to measure) the size the HttpSession?

    What I'm doing now is roughly this:

    Code:
    <view-state id="myID" view="/WEB-INF/somePage.xhtml" model="someBean">
    	<on-entry>
    		<!-- Measure HttpSession Size-->
    		<evaluate expression="loginAction.entryEvent(flowRequestContext,domainContext)" />
    	</on-entry>
    	<on-render>
    		<!-- Measure HttpSession Size-->
    		<evaluate expression="loginAction.renderEvent(flowRequestContext,domainContext,'start')" />
    		<!-- Do a bunch of other things here -->
    		<!-- Measure HttpSession Size (Right now this is the final place I see I can measure the size... is this the right place??? -->			
    		<evaluate expression="loginAction.renderEvent(flowRequestContext,domainContext,'end')" />
    	</on-render>
    	<!-- Bunch of transition items here.....-->	
    	<on-exit>
    		<!-- I don't ever see this called -->
    		<evaluate expression="loginAction.exitEvent(flowRequestContext,domainContext)" />
    	</on-exit>
    </view-state>
    Would I get the most accurate measure of HttpSession size at the end of <on-render> or should I measure elsewhere?

    Thanks a lot!

  • #2
    First make sure that the app's session timeout value is set to reasonable instead of the default value. Once you are sure, you can go with HttpSession size measurement.

    Comment


    • #3
      I am setting a timeout value...
      I guess what I meant to say is that I want to know at what point in time in the spring flows the HttpSession is populated with all the data that it will be populated with while we wait for user input. That is the point I want to measure the size of HttpSession.

      Comment

      Working...
      X