Return-Path: Delivered-To: apmail-tcl-rivet-dev-archive@tcl.apache.org Received: (qmail 85460 invoked by uid 500); 23 Jan 2003 13:52:28 -0000 Mailing-List: contact rivet-dev-help@tcl.apache.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Post: List-Help: List-Unsubscribe: List-Subscribe: Delivered-To: mailing list rivet-dev@tcl.apache.org Received: (qmail 85444 invoked from network); 23 Jan 2003 13:52:27 -0000 Date: Thu, 23 Jan 2003 14:52:12 +0100 From: Ronnie Brunner To: "David N. Welton" Cc: rivet-dev@tcl.apache.org Subject: Re: sessions Message-ID: <20030123135212.GF29932@netcetera.ch> Reply-To: Ronnie Brunner References: <87y95gqrvh.fsf@dedasys.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87y95gqrvh.fsf@dedasys.com> User-Agent: Mutt/1.4i X-Spam-Rating: 208.185.179.12.available.above.net 1.6.2 0/1000/N > Mulling over a few ideas on ways to do sessions... You know what websh3 does (lot's of complicated things). The few interesting things that I think are basic are: creating sessions (creating session keys) maintaining session (using query string or cookies) keeping data (in cookie or locally.) incl. handling of data (get and set methods as well as load and save) Imho, timeout handling should be done by the application and not by the frame work (easy to do and most of the time quite specific). Cleanup of old (unused) session info as suggested in an other reply to your mail should be done async (housekeeping batch stuff or similar) (also only imho) I think we overdid the configurability in websh3 (it's too complicated to handle) but if you ask me about the important hooks for configurability, I'd say: - create new session id - load data - save data would be valuable entry points. default implementations could provide an increasing integer as session id and loading and saving in the file system. > *) I don't think it should be too complex. Definitly important! Rather simple than incredibly flexible (that's what I learned the hard way, by doing it too complicated) Ronnie ---------------------------------------------------------------------- Ronnie Brunner ronnie.brunner@netcetera.ch Netcetera AG, 8040 Zuerich phone +41 1 247 79 79 fax +41 1 247 70 75 --------------------------------------------------------------------- To unsubscribe, e-mail: rivet-dev-unsubscribe@tcl.apache.org For additional commands, e-mail: rivet-dev-help@tcl.apache.org