Sessions timeout, and are tracked with cookies. They can be stored in a
number of different ways (configurable)
Associated servlets are typically grouped through inheritance -- e.g.,
though a common SitePage superclass. This isn't directly related to
directories in any way.
Shared variables are generally handled through module globals. You can
use dictionaries or whatever to seperate applications. For instance,
you could just have a module for each application, and import that in
the respective servlets. You'll have introduced thread-safety issues,
but that's no different than in CF or whatever.
On Wed, 2001-12-19 at 18:07, Luke Opperman wrote:
> Small questions:
> In Coldfusion there are Application and Session variables
> (and more). An Application is user-defined, generally
> applying to all directories under a given point (although a
> subdirectory could say it belonged to a separate
> application). Session variables exist for a browser
> session, apparently based on cookies (although encoding to
> url is also possible) or timeout after lack of activity.
> How do these concepts map to Webware? Is there a way to
> store "Context-wide" variables? Or are application-wide
> variables more like Servlet-wide (cached) values? Can I
> group disparate Servlets into collections somehow (for
> instance, to share a single UserManager for user auth)? Is
> it true that Sessions do not timeout? Coldfusion also has
> Client variables, which are like session variables but last
> longer (2 days is default, we use them for a few shopping
> cart-like systems). These are also tracked by cookie.
> I guess part of my problem is that I can't seem to find how
> sessions are tracked in Webware. (cookie based? I remember
> running across it over Thanksgiving, but can't find it
> Reference Counting Garbage Collection:
> Look out philosophy majors, things really DO
> cease to exist when no one is looking at them!
> Do You Yahoo!?
> Check out Yahoo! Shopping and Yahoo! Auctions for all of
> your unique holiday gifts! Buy at http://shopping.yahoo.com
> or bid at http://auctions.yahoo.com
> Webware-discuss mailing list