Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 40747 invoked from network); 23 Jan 2004 21:43:10 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Jan 2004 21:43:10 -0000 Received: (qmail 37542 invoked by uid 500); 23 Jan 2004 21:42:51 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 37244 invoked by uid 500); 23 Jan 2004 21:42:49 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 37228 invoked from network); 23 Jan 2004 21:42:49 -0000 Received: from unknown (HELO jupiter.lunarpages.com) (64.235.234.141) by daedalus.apache.org with SMTP; 23 Jan 2004 21:42:49 -0000 Received: from adsl-18-179-94.gsp.bellsouth.net ([68.18.179.94] helo=torpedo) by jupiter.lunarpages.com with asmtp (Exim 4.24) id 1Ak94q-0002MB-4j for users@cocoon.apache.org; Fri, 23 Jan 2004 13:42:56 -0800 From: "Brent L Johnson" To: Subject: Multiple DB Inserts for XSP? Date: Fri, 23 Jan 2004 16:42:49 -0500 Message-ID: <002001c3e1f9$dad20890$c801a8c0@torpedo> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.2627 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Importance: Normal X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - jupiter.lunarpages.com X-AntiAbuse: Original Domain - cocoon.apache.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - bjohnson.net X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N (Hope Im not spamming the mailing list.. I'm sending this a third time because I'm not seeing it coming through the mailing list.. I resubscribed to the list and tried again) I'm using the authentication framework to handle logins on the site I'm working on. When the login is handled successfully the pipeline should do a map:generate for an XSP that does a database insert into a login_log table. But - when I login.. I get TWO rows into the database, for one single insert. I'm not sure how this is happening.. sometimes the timestamp between the inserts is 2-3 seconds. Its only me logging in.. no one else.. this is just really driving me crazy. Here's is the auth snippet from my sitemap: And here is the exact esql code I'm using in loginComplete.xsp (where the insert is being done): tpptools insert into login_log (login, timestamp, host, results) values (, NOW(), , 'SUCCESS'); I've searched.. there is no other code that inserts data into this table. And that file only appears ONCE in the whole sitemap.xmap file. Right there in performLogin.html. I cleared out my database table, tried a single login.. and here are the results: +----+-------+---------------------+---------+---------------+ | id | login | timestamp | results | host | +----+-------+---------------------+---------+---------------+ | 17 | vha | 2004-01-23 15:01:18 | SUCCESS | 192.168.1.200 | | 18 | vha | 2004-01-23 15:01:21 | SUCCESS | 192.168.1.200 | +----+-------+---------------------+---------+---------------+ Does anyone have any idea why it's doing this? I'm sure it some small stupid mistake on my part.. but I'm have a hard time trying to pin down why this code would be executing twice. And notice that 3 second gap in the timestamp. That seems strange. I've seen it as large as 5 seconds.. sometimes its the same. Any help would be greatly appreciated. Thanks, - Brent --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org