hi,
i think your problem is not cocoon releated.
first let me ask you are you talking about http-session?

In that case you should read the servlet-2.2, or servlet-2.3 spec.
You may want to use a ServletContext attribute holding the current 
session-count.
Lets say:
<snippet>
  Integer total_count = 
(Integer)servlet_context.getAttribute("total-session-count");
  Integer new_total_count = ...;
  servlet_context.setAttribute("total-session-count", new_total_count);
</snippet

Now before you create a new session check the servlet-context-attribute, 
if it is
still valid to create a new session.

If you create a http-session, put an object into the session implementing
HttpSessionBindingListener, implement in the valubeBound(), and 
valueUnbound(), the
increasing, and decreasing of the servlet context attribute. This will 
assert that the servlet-context-attribute always has a valid value, and 
reflects the total number of active sessions.

Hope the explanation helps you
bye bernhard



---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to