[Web-SIG] Session interface
mike_mp at zzzcomputing.com
Wed Aug 17 18:52:16 CEST 2005
Jonathan Ellis said:
> Now that's an example of when I think sessions are a poor solution. IMO
> caching objects from the database is the job for the, well, database
> object cache. :)
> They are similar but not identical. For instance, while session data
> typically expires after a certain amount of time, permanent data should
> never expire unless invalidated by an update.
putting a few user preferences in the session instead of constructing
and/or installing a separate database caching system is cheating, but its
a small cheat. I think small cheats are fine to get a job done; the exact
specification and design of big architectural features are usually derived
from the set of small cheats they are replacing.
More information about the Web-SIG