[Helma-user] onSessionStart / onSessionEnd

Hannes Wallnoefer hannes at helma.at
Wed Jun 6 11:56:54 CEST 2007


2007/5/31, kRAkEn/gORe <kunitoki at gmail.com>:
> just wondering, any possibility to have these added in the repository ?
> i need to know when a new session is started up and when it is
> released (freeing any associated maps generated by my map engine).

The problem I see with your patch is that the functions are not
invoked with the actual session. That's because
RequestEvaluator.invokeInternal() (and invokeDirectFunction(), which
would probably be a better choice in this case, because it runs the
function in the caller thread) only install a dummy session in the JS
scope (only invokeHttp() uses an actual HTTP user session).

The easiest way to fix this would be to simply pass the session as
argument to the function.

Apart from that, I'm still unsure about the additional overhead of
these two callbacks. Helma creates a new session for each request,
regardless of whether it is actually accessed. I'd really like to get
an idea about session fluctuation on some real site like antville.org.

What about other users? Does anybody else have a need for these callbacks?

hannes

> thanx
>
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
>
>


More information about the Helma-user mailing list