I'm having a problem which I can't seem to find an elegant solution for,
and I'm hoping that anyone can give me a hint on how to solve it.
I'm trying to make a frontend user session last eternally. If I was to
implement this in Java, I would do that by calling
setMaxInactiveInterval(-1) on the session object.
However, since MMBase handles these sessions by itself, I call <mm:cloud
logon="x" pwd="x" /> when a user logs on to the frontend, after which a
session is created by MMBase.
As far as I can see there is no way to set the expire time for the
session with an attribute for mm:cloud. I tried catching the session
from the Request object and calling setMaxInactiveInterval(-1) on that
session, but no luck either.
After having searched for quite some time, the only solution I can think
of is setting the username and password in a cookie, and after
revisiting the website these values are used to log the user back on.
This, of course, is far from elegant/safe, so if anyone could point me
in the right direction, I'd be very grateful.
Thanks in advance!
Best regards
Pieter Jelle
_______________________________________________
Developers mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/developers