I don't think that will work. SessionManager is stateless and if you did that you wouldn't be able to use a singleton instance.

An alternate approach would be to add a method that returns some kind of session object given a session ID, and have that object implement getSessionUserId() and continueSession(). (And maybe isSessionValid() too, but you could just say that object is only returned for valid session IDs.) The authentication code can remember that object using a request attribute a la the IDENTITY_ATTRIBUTE_NAME attribute so the element class can call it as needed.

What do you think of that?

-Steve


Geert Bevin wrote:
Hi Steven,

maybe we should add a method to the SessionManager interface (setElementSupport) that is called by the authentication with itself as the argument.

What do you think?

Geert

_______________________________________________
Rife-users mailing list
[email protected]
http://lists.uwyn.com/mailman/listinfo/rife-users

Reply via email to