Marc Ende wrote: > webapps do. In this case you've got to serialize the connection. I don't > think that's easy/possible to seralize a database connection. > I would go another approach which uses the session only as a > information-container and get those needed information from the > database in the page-lifecycle. That keeps the session-object small > (which is also an aspect).
Hmm, following your argumentation, would you say that the AuthenticatedWebSession is implemented wrong because it contains a #authenticate method (which clearly needs a reference to some kind of database)? Or would marking the field as "transient" be fine? Cheers, Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
