From owner-freebsd-questions@FreeBSD.ORG Fri Oct 10 03:09:21 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E79A61065686 for ; Fri, 10 Oct 2008 03:09:21 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: from web56805.mail.re3.yahoo.com (web56805.mail.re3.yahoo.com [66.196.97.79]) by mx1.freebsd.org (Postfix) with SMTP id 9DDC48FC13 for ; Fri, 10 Oct 2008 03:09:21 +0000 (UTC) (envelope-from mdh_lists@yahoo.com) Received: (qmail 72267 invoked by uid 60001); 10 Oct 2008 03:09:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:X-Mailer:Date:From:Reply-To:Subject:To:In-Reply-To:MIME-Version:Content-Type:Message-ID; b=sJlOMjbH5t8j2x5SIkV6yeQLROlj5gbzac3P4Xbw8vQXrvm0G8z0yswzNLKxdXzRU8RojzyE5AsXO8ZJYGvSEmRX6+532EPnJ0/8woyYGk1aoYrFxmmk2s6CokMANF71j4WXH3FziqvgWhChyOZHj/XQ80dXDd6KKcSVnm9xeDI=; X-YMail-OSG: akCDVAMVM1ldPB9Nf2.D.aDcPmyUP7v6o8qn4q14p26d8Ttg9wvBNhUp5UeWLsqeug-- Received: from [71.61.220.126] by web56805.mail.re3.yahoo.com via HTTP; Thu, 09 Oct 2008 20:09:20 PDT X-Mailer: YahooMailWebService/0.7.218.2 Date: Thu, 9 Oct 2008 20:09:20 -0700 (PDT) From: mdh To: freebsd-questions@freebsd.org, Grant Peel In-Reply-To: <7B4A419D26AE44F986698BB7A482DE29@GRANT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Message-ID: <745970.72228.qm@web56805.mail.re3.yahoo.com> Cc: Subject: Re: Mailman + Apache + Cookies + FreeBSD X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mdh_lists@yahoo.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2008 03:09:22 -0000 --- On Thu, 10/9/08, Grant Peel wrote: > From: Grant Peel > Subject: Mailman + Apache + Cookies + FreeBSD > To: freebsd-questions@freebsd.org > Date: Thursday, October 9, 2008, 5:59 PM > Hi all, > > I am not a fan of cross posting, but, I have to make a > exception in this > case as I can't seem to nail down whether its the > software or OS causing me > the problem. > > Software: Apache 2.2, Python 2.5, Mailmain 2.1.11 > OS: FreeBSD 6.2 Release #0 > > Apache and Python were built from ports, Mailman was built > from source. > > Problem: I can't stay logged into the Mailman web > interface. Each time I > submit a form, I am logged out. When I do log in, If I look > on my local > machine, I cant find a session cookie anywhere. It like is > never set. And > the Mailman documentation clearly states that none of the > changes will be > saved in that scenario. > > Question: are there any people out there who can point me > in the right > direction? I assume that Python should be setting a cookie, > but thats just a > guess ... could it be OS related? In short, no, there's really no way that the OS could be at fault unless you had some weird TCP stack bug that caused it to drop the same packet every time, which someone else would've noticed by now. ;) The long answer is that Cookies are set by headers in the HTTP protocol response, and sent back to the server in the request headers of the clients subsequent requests. Python doesn't set cookies, Apache does, but python can command Apache to do so, and Mailman can, as a python script, command python to do so. Chances are mailman is what's misconfigured. - mdh