2 methods

1)put it into the Database but dont commit it until you log out (of the sesssion)
2)dont put it into the DB until you are absolutely positively sure you want it in there
(when you logout of the session)
Makes Sense?

Martin Gainty

______________________________________________

Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official business of Laconia Data Systems (LDS) is proprietary to the company. It is confidential, legally privileged and protected by law. LDS does not own and endorse any other content.

<
>From: Peter Dolukhanov <[EMAIL PROTECTED]>
>Reply-To: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Session listener
>Date: Sat, 8 Mar 2003 13:38:31 -0000
>MIME-Version: 1.0
>Received: from mc8-f29.law1.hotmail.com ([65.54.253.165]) by mc8-s14.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 8 Mar 2003 06:09:46 -0800
>Received: from swjscmail2.java.sun.com ([192.18.99.108]) by mc8-f29.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Sat, 8 Mar 2003 06:09:44 -0800
>Received: from swjscmail1 (swjscmail1.Sun.COM [192.18.99.107])by swjscmail2.java.sun.com (Postfix) with ESMTPid CF3BD21213; Sat, 8 Mar 2003 06:34:56 -0700 (MST)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d) with spool id 6017975 for [EMAIL PROTECTED]; Sat, 8 Mar 2003 06:32:22 -0700
>Received: from blueyonder.co.uk (pcow034o.blueyonder.co.uk [195.188.53.122]) by swjscmail1.java.sun.com (Postfix) with ESMTP id A016D4835 for <[EMAIL PROTECTED]>; Sat, 8 Mar 2003 06:32:21 -0700 (MST)
>Received: from scotproject ([80.194.221.128]) by blueyonder.co.uk with Microsoft SMTPSVC(5.5.1877.757.75); Sat, 8 Mar 2003 13:40:32 +0000
>X-Message-Info: dyVzE7im2MUs9FcS4EeG9Njhcv4GK1zv
>Delivered-To: [EMAIL PROTECTED]
>X-Priority: 3 (Normal)
>X-MSMail-Priority: Normal
>X-Mailer: Microsoft Outlook, Build 10.0.2627
>Importance: Normal
>X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
>Message-ID: <[EMAIL PROTECTED]>
>Sender: A mailing list about Java Server Pages specification and reference <[EMAIL PROTECTED]>
>Return-Path: [EMAIL PROTECTED]
>X-OriginalArrivalTime: 08 Mar 2003 14:09:44.0874 (UTC) FILETIME=[5EC920A0:01C2E57C]
>
>Dear All,
>
>I'm fairly sure this has been mentioned previously, but I cannot find
>any discussion in the archives.
>
>The site I am developing has a standard shopping cart object implemented
>within a session object. Whenever a user adds an item to his shopping
>cart, it is temporarily removed from the main stock database to ensure
>that when the user checks out, that item will be available to them.
>
>However, for obvious reasons I need to keep a track on this session
>object, so either when the user closes his browser or the session times
>out, I need to reinstate the items back to the original database.
>
>Therefore, is there any available resource to keep a track on a session
>object, ideally a listener that will implement some given action at the
>end of a session object?
>
>Many thanks,
>Peter Dolukhanov
>
>===========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>
>Some relevant archives, FAQs and Forums on JSPs can be found at:
>
> http://java.sun.com/products/jsp
> http://archives.java.sun.com/jsp-interest.html
> http://forums.java.sun.com
> http://www.jspinsider.com


STOP MORE SPAM with the new MSN 8 and get 2 months FREE* =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com

Reply via email to