Re: Suppressing Session creation?
Michael Platzer <[email protected]> Wed, 25 Jul 2007 23:04:03 +0200
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
Hi Joshua, > Am I correct in thinking that Helma attaches a Session to each visitor > whether or not I save anything to the Session? If so, is there a way to > suppress this behavior for a specific page? E.g., if I wanted to > dynamically generate some badge code--my page output would be getting > included as a JavaScript or image or some such on someone else's site, > and I would have no need to keep session information for such requests > (interesting though it might be for snooping about people's browsing > habits). > There is currently no way to suppress the creation of sessions for a single page, nor for a whole application. One "trick" would be to implement your own SessionManager, and to use that one instead of helma.framework.core.SessionManager by setting the sessionManagerImpl-configuration accordingly. -> http://adele.helma.org/source/viewcvs.cgi/helma/src/helma/framework/core/Application.java?annotate=1.198&cvsroot=hop#415 > Also, do Sessions just hang out in memory or are they written to disk? > The helma.framework.core.SessionManager is solely memory-based. Only if "persistentSessions=true" is specified in app.properties, these sessions will be serlialised to disk when stopping and starting the application. michi