Return-Path: Delivered-To: apmail-perl-modperl-archive@www.apache.org Received: (qmail 28690 invoked from network); 18 Dec 2005 20:08:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Dec 2005 20:08:57 -0000 Received: (qmail 78218 invoked by uid 500); 18 Dec 2005 20:08:37 -0000 Delivered-To: apmail-perl-modperl-archive@perl.apache.org Received: (qmail 77902 invoked by uid 500); 18 Dec 2005 20:08:36 -0000 Mailing-List: contact modperl-help@perl.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list modperl@perl.apache.org Received: (qmail 77870 invoked by uid 99); 18 Dec 2005 20:08:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 12:08:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [216.158.52.11] (HELO mail.liminalflux.net) (216.158.52.11) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 18 Dec 2005 12:08:34 -0800 Received: from localhost (dalereuth.liminalflux.net [127.0.0.1]) by mail.liminalflux.net (Postfix) with ESMTP id DAC21380D2 for ; Sun, 18 Dec 2005 15:08:12 -0500 (EST) Received: from mail.liminalflux.net ([127.0.0.1]) by localhost (mail.liminalflux.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18349-05 for ; Sun, 18 Dec 2005 15:07:45 -0500 (EST) Received: from [192.168.0.253] (nephilim.otherkin.net [207.245.72.101]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.liminalflux.net (Postfix) with ESMTP id 693CF380AC for ; Sun, 18 Dec 2005 15:07:45 -0500 (EST) From: Malcolm J Harwood To: modperl@perl.apache.org Subject: Re: apache::session not writing to db Date: Sun, 18 Dec 2005 15:01:29 -0500 User-Agent: KMail/1.8.2 References: <20051218193113.96071.qmail@web60422.mail.yahoo.com> In-Reply-To: <20051218193113.96071.qmail@web60422.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200512181501.29997.mjhlist-modperl@liminalflux.net> X-Virus-Scanned: by amavisd-new at liminalflux.net X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On Sunday 18 December 2005 02:31 pm, Michael Greenish wrote: > Note that I set 'stuff' immediately after the session > is created. I would expect at this point that the > database be updated. That's incorrect. The database is only updated when the session is untied (usually on going out of scope). > The session is inserted into the sessions table, but > the a_session is never updated. I tried using the > tied( %session )->make_modified, and I tried untie( > %session ) when I am done with the request, but none > of those seem to cause anything to be written in the > database. untie %session should work. What happens if you do that in your constructor after: > $session{'stuff'} = 'is this in the database?'; If that works, you've got a problem in your code somewhere. If it doesn't, the it could be a db permissions issue or something. Do you get any errors in your logs? -- If you want to kiss the sky Better learn how to kneel - 'Mysterious Ways' U2