On Wed, Apr 9, 2008 at 12:04 PM, Hans Hübner hans@huebner.org wrote:
2008/4/9, Andy Chambers achambers.home@googlemail.com:
How hard would it be to make sessions work independently of hunchentoot? I'd like (or rather Kenny would like) to make my openAIR stuff work with aserve. Aserve does have webactions but it seems to involve more than just sessions. They have a concept of "managed pages" which doesn't really fit with the way I've done things so far.
I made a half-hearted attempt at just copying sessions.lisp and specials.lisp into my own project but it seemed like if I was actually going to make it work, I'd end up with all the same dependencies as hunch anyway so what would be the point.
I'd recommend that you implement your own session management scheme based on cookies - It is not a hard thing to do and will propably be easier than to factor out the sessions specific parts of Hunchentoot into something that could be reused with Aserve. I don't know anything about your target audience, but if you don't try to support people who have switched off Cookies, handling sessions is rather easy.
The current sessions aren't suited to all cases, anyway; in particular, they're not suitable for a system with multiple frontend machines unless you're binding users to a specific machine on login (which carries its own problems with it). Rob.