[Seaside] [ENH] Session with (lazy) form-based login

miso.list at auf.net miso.list at auf.net
Wed Mar 24 17:32:03 CET 2004


Hi - here are two tiny classes (basically 2 methods) implementing:

* logging in a user at the session level (allowing the login to be
shared by multiple component)

* the login is form-based (unlike WAAuthenticatedSession)

* the login taps into your existing database of users (ie does not
restrict you to a single user as WAAuthenticatedSession does). You
need to plug in your own code to tap your db, of course. See
#handleLogin

* the login is lazy in that it occurs only when a component asks for
'self session user'. This is easy to change into a session-initial
login, see the comment in SeasideLoginSession.

Since it took me a couple of hours to find how to do this in Seaside,
I thought I'd spare someone else :) Also, since I'm fairly new to
Seaside, comments or criticisms are welcome.

Michal



More information about the Seaside mailing list