Hey guys,<br><br>I noticed that webbeans is currently creating the HttpSession immediately at the beginning of the request:<br><br>&nbsp;&nbsp; public static void beginRequest(HttpServletRequest request) <br>&nbsp;&nbsp; {<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; SessionContext.INSTANCE.setBeanMap(new SessionBeanMap(request.getSession()));<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ...<br>&nbsp;&nbsp; }<br>&nbsp;&nbsp; <br><br>Do you think it&#39;d be worthwhile delaying session creation until it&#39;s actually needed (i.e. when a session-scoped bean is first created)?&nbsp; Some people may wish to avoid creating a session until a user logs in, for example.<br>
I don&#39;t know how many people actually do this.<br><br>For what it&#39;s worth, Seam tries to create sessions lazily, so it&#39;d probably be good to follow suit.<br><br>-Matt<br>