Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81499 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 58635 invoked from network); 31 Jan 2015 20:31:27 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 31 Jan 2015 20:31:27 -0000 Authentication-Results: pb1.pair.com smtp.mail=yohgaki@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=yohgaki@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.174 as permitted sender) X-PHP-List-Original-Sender: yohgaki@gmail.com X-Host-Fingerprint: 209.85.216.174 mail-qc0-f174.google.com Received: from [209.85.216.174] ([209.85.216.174:60369] helo=mail-qc0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 61/D2-39884-E9B3DC45 for ; Sat, 31 Jan 2015 15:31:26 -0500 Received: by mail-qc0-f174.google.com with SMTP id s11so25394298qcv.5 for ; Sat, 31 Jan 2015 12:31:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=7+MleN88Sc+R8BzRXRPi1cz7+5DgJ2MpFTvsZB2VQ7g=; b=YuKDch/A6q3VsX43YdNJ9DE18XqRp/T9D2kdK8tGb7UmMRYxV9ugbBBVXoMEMhecfe g+ZBT2/zGE0pKB955XZ4D3l0VicHHCVogKU6P4pO1IQ3Er9p21bYuWg/bp6wB2YZ3k2a 5U9iDU6zr91ZRalZvADvBnvcfNj0frzF7keva8LV5MdRZa+W1nHx6M87OjinFZAzRAtv RqrRb4IuCHu/Rg1ysX4uX9o+u+Su779M8miWUgF7RjBR8R+x/M32YbDQ8Fq0t+WcC1Qk soHWIpSplbANqbekErxbOVcQc1JX8P22K9uFC5k307NdpOh3FLXhvZOH3gLFZgbU4ttT 9hog== X-Received: by 10.140.20.226 with SMTP id 89mr24942768qgj.43.1422736282308; Sat, 31 Jan 2015 12:31:22 -0800 (PST) MIME-Version: 1.0 Sender: yohgaki@gmail.com Received: by 10.229.93.70 with HTTP; Sat, 31 Jan 2015 12:30:42 -0800 (PST) In-Reply-To: References: Date: Sun, 1 Feb 2015 05:30:42 +0900 X-Google-Sender-Auth: YryYsrUXgh35GcWtMZyRQd1ubOo Message-ID: To: "internals@lists.php.net" Content-Type: multipart/alternative; boundary=001a11c1257eb7569a050df89ad6 Subject: Re: Session: More strict session data management From: yohgaki@ohgaki.net (Yasuo Ohgaki) --001a11c1257eb7569a050df89ad6 Content-Type: text/plain; charset=UTF-8 Hi all, On Sat, Jan 31, 2015 at 11:44 AM, Yasuo Ohgaki wrote: > As I described already, current session management is lazy to delete > obsolete > session data. New behavior is much stricter than now and there is no > exposed > internal data to users(script). The "hidden" timestamp only exists in > obsolete > session data. New behavior requires less GC also. > Current session manager is lazy for expiration also. The same method, "hidden" timestamp, can be used for housekeeping. If the timestamp is updated always, "lazy_write" option is spoiled. To prevent that, last modified time updates could be done with longer resolution, i.e. Update timestamp by every minute, not second. With this, GC is only need for true GC. i.e. GC will not be used to expire session data. Therefore, GC may be done once a day, for example. Any comment? Regards, -- Yasuo Ohgaki yohgaki@ohgaki.net --001a11c1257eb7569a050df89ad6--