[Seaside] #call: #answer / sessions

Ramiro Diaz Trepat ramirodt at gmail.com
Fri Jan 19 02:28:01 UTC 2007


> > When you develop a login process, like the one in Ramon's
> > blog.  Where is it proper to store the user that is logged
> > on? Is this supposed to be stored somewhere in the WASession?
>
> Yes, a custom session class is a good place for this, so you can have access
> to it from every component with a simple..
>
> self session currentUser
>
> Also common is
>
> self session database

If I create a subclass of WASession with the currentUser attribute,
how do I inform Seaside to use it when I call self session? For it not
to pass me a regular WASession
Thank you very much for answering Ramón.
By the way, the work you have been doing with onsmalltalk.com is
great, particularly for noobs like me.
Bye


More information about the Seaside mailing list