Return-Path: X-Original-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Delivered-To: apmail-httpd-modules-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 35337187FE for ; Thu, 3 Sep 2015 13:52:00 +0000 (UTC) Received: (qmail 32556 invoked by uid 500); 3 Sep 2015 13:52:00 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 32488 invoked by uid 500); 3 Sep 2015 13:51:59 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 32476 invoked by uid 99); 3 Sep 2015 13:51:59 -0000 Received: from Unknown (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Sep 2015 13:51:59 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 26CD3C0B79 for ; Thu, 3 Sep 2015 13:51:59 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.524 X-Spam-Level: **** X-Spam-Status: No, score=4.524 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.626, HK_RANDOM_FROM=0.999, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id TjoaydVsYzuJ for ; Thu, 3 Sep 2015 13:51:51 +0000 (UTC) Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 9BE3C21232 for ; Thu, 3 Sep 2015 13:51:51 +0000 (UTC) Received: by iofb144 with SMTP id b144so58766092iof.1 for ; Thu, 03 Sep 2015 06:51:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=eWYXMCUfqOVoRTo02ztJImRBLDRODjWJS/Pl7Hf5P2Q=; b=xw4UpSVJlDbMWSmG1E/0EBTBvgqVi1WWIRNJ8fe1yZi8v6/YFyjQgBiEKsJEymPGMy zLHhq1wCXHENbyfb/HEpvPpfWOeCQk7EmHNPmI8oMps3bv5X2PRZ9i65y+tZ8auZrxb3 Yxlw4x8WSxCh9fzPu4O7ky1H5Co7gcxU7zpgpnmddXy0ld1tv2m6T1Riof/BgCs+sdnq 0dkMp2oG+sR92mVm7/28tO+nKXzFNl7Kkjhlr+6AGuGuYkdaGfxpdzfDFkczeoP7lP6E o/+boNDx9cZQDGGUl4TmzAde6OXLah9lutuw2XXCO4rhYRl1d/5dAQqawCuiXm8TM+jS R2cw== MIME-Version: 1.0 X-Received: by 10.107.170.32 with SMTP id t32mr12078851ioe.173.1441288305185; Thu, 03 Sep 2015 06:51:45 -0700 (PDT) Received: by 10.50.131.225 with HTTP; Thu, 3 Sep 2015 06:51:45 -0700 (PDT) Date: Thu, 3 Sep 2015 08:51:45 -0500 Message-ID: Subject: mod_lua unable to delete cookie From: Mark Taylor To: modules-dev@httpd.apache.org Content-Type: multipart/alternative; boundary=001a1142edfc731ba7051ed815a5 --001a1142edfc731ba7051ed815a5 Content-Type: text/plain; charset=UTF-8 Calling setcookie(..) with expires=0 does not set expires to the epoch time on the client. To delete a cookie client side, conventional wisdom is to set expires to the epoch time: http://stackoverflow.com/questions/5285940/correct-way-to-delete-cookies-server-side When setting expires=0 in setcookie, modules/lua/lua_requests.c lua_set_cookie() function skips adding the expires field to the cookie in Set-Cookie header sent back to client. The fix is pretty simple, time zero should be the epoch anyway? -Mark --001a1142edfc731ba7051ed815a5--