[Helma-user] onSessionStart / onSessionEnd
kRAkEn/gORe
kunitoki at gmail.com
Wed Jun 6 12:15:32 CEST 2007
yeah i know, this is the update version.
it works on my side, and a new session ISN't created for every
request. i've tested widely (adding stuff to session.data in the
onSessionStart) and it works ok. i can see it calling on a new request
that don't have a session already allocated, and after the timeout, it
calls the cleanup onSessionEnd. you can't put complex things in that,
but i just needed a function to get told when a new session starts so
i can fill session things up (basically a map engine), and let the map
engine clean up when the session end, freeing up the remaining files
previously allocated by the user
lucio
On 6/6/07, Hannes Wallnoefer <hannes at helma.at> wrote:
> 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
> >
> >
> >
> _______________________________________________
> Helma-user mailing list
> Helma-user at helma.org
> http://helma.org/mailman/listinfo/helma-user
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SessionManager.java
Type: text/x-java
Size: 8770 bytes
Desc: not available
Url : http://helma.org/pipermail/helma-user/attachments/20070606/53beede1/attachment-0001.bin
More information about the Helma-user
mailing list