Let me see if I can flesh out the question? Coldfusion (4/5, don't know about later) provided 3 levels of 'variable scope': Session, Client, and Application. Session is the same as webware's session variables. Client was an odd intermediate one, lasted a couple days, but basically a longer-lasting cookie-managed session var. Both of these were limited to the same client access, although Client lived past browser close.
Application level was across all clients, in webware's terminology I would call this Context-level (or if your contexts are shared/one-site, this could be Application-level). They did not survive appserver restarts. If this is what you're looking for, your example code from another mail (attaching a var to transaction().application()) works for me, although to avoid editing/resaving I did it in two separate psp files: one to set, one to read. Are you using OneShot.cgi, or do you have AutoReload set for the Application.config? My guess is you are seeing the effects of variables that don't survive appserver restarts. Of course, restarts are a lot more common/accepted in Webware because of the seamless session persistence and python module messiness. If you don't really need them to persist, then just make sure they are initialized somewhere in your code (awake, or perhaps contextInitialize). However, style-wise there are better ways to do this for non-persistent data in python, such as module-level singletons. Notice that in this case, application-level is the same as python-interpreter-level. This would be appropriate for things that just need to be accessible to all of the application (often used for database connection sharing in Webware, for example.) If you do need the data to persist, then I believe you'll have to look at either classic persistence such as database or file storage, or at hooking something into webware much like the Session stuff to store your info to disk/database at appserver shutdown, and then in contextInitialize or similar to restore it. (See transaction().application().addShutDownHandler() in Webkit/Application.py) Whew, probably a little long-winded, hope this helps. - Luke Quoting [EMAIL PROTECTED]: > > Does WebWare provide a mechanism for data (ie. variables) stored in memory > on a server and/or application scope? Read carefully before answering about > databases, sessions or filesystems. > > -Kai > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Webware-discuss mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webware-discuss