Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:81104 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 28984 invoked from network); 25 Jan 2015 02:55:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 25 Jan 2015 02:55:02 -0000 Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.169 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.169 mail-ob0-f169.google.com Received: from [209.85.214.169] ([209.85.214.169:61100] helo=mail-ob0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/B2-11456-50B54C45 for ; Sat, 24 Jan 2015 21:55:02 -0500 Received: by mail-ob0-f169.google.com with SMTP id va8so3379834obc.0 for ; Sat, 24 Jan 2015 18:54:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=818SHxT5oDal5RJlBBvwJQmOI97bxK8vUNUZG2eY3K4=; b=QWXw0Ctz0mlttd5gUpicJKCepwypHck1jFexVHJXuQ5QJ+uQJQB9dzD+RwnLLGBtEp 0SdSpZTtAy/XUl/AqD/niFug+s9J9UO/yt5l4cHhMk47m/5qvg9KNhnVzvUoFSrPTdVK SUSDj9Anmbt7MLd51EM3WLZjulEXVIfiSP/YI= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=818SHxT5oDal5RJlBBvwJQmOI97bxK8vUNUZG2eY3K4=; b=M/RmQsmkO3Te2HWIPjvUxHC/I0RavcvNXbXsC8XnUDDQPssasugU7l5AYGIHaMj91P JTjpM3kLfo02Z8sa+OyqcrbRw/LPdPDK6ZDKt9R/qFOqm2j7RYDv583d+0JGrgANqBpg HH3aaDQZob5ta5eWcwkBSAaUYgoXIilmXoL6i4+0BTaWXdCdEZsKU+KLJyQ6Y4eWGqOd om5zWfHqNZonXBHxc/7WzLWXNSoDxJqURVq2//RBiT3QyoKkR1anZ7J2uRxqWh34f60n /mH48ngHHb+C4nTzs+qL5uD7elTJefbXK6SWNdm60yT8Y3ZmYPXL3d3VR4Jjg98JfC8B y9xg== X-Gm-Message-State: ALoCoQns+RYUT339yPskwYGOuyv20PVkFNNtK/KVxWeVKBl5qO+P6VIJFXR1vNsmIdFCgUaXjlQi MIME-Version: 1.0 X-Received: by 10.182.126.197 with SMTP id na5mr9135029obb.2.1422154499517; Sat, 24 Jan 2015 18:54:59 -0800 (PST) Received: by 10.202.214.205 with HTTP; Sat, 24 Jan 2015 18:54:59 -0800 (PST) In-Reply-To: References: <54C1D562.1080402@gmail.com> <54C1EE77.7040000@gmail.com> <54C2DE03.6090708@gmail.com> Date: Sun, 25 Jan 2015 04:54:59 +0200 Message-ID: To: Yasuo Ohgaki Cc: Stanislav Malyshev , "internals@lists.php.net" Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Removing base class from session handler From: narf@devilix.net (Andrey Andreev) Hi again, On Sat, Jan 24, 2015 at 7:48 PM, Yasuo Ohgaki wrote: > Hi Andrey, > > On Sat, Jan 24, 2015 at 6:34 PM, Andrey Andreev wrote: >> >> > This is because session module lacks user defined serializer. Save >> > handler >> > handles session data storage. Serialize handler handles how data is >> > converted/represented. IMHO. >> > >> >> That's not the only use case. >> >> Some time ago I proposed a session.match_ip feature and argued that if >> I wanted to implement it in userland code, I'd have to implement the >> *whole* session handler from scratch. An example using the >> SessionHandler class proved me wrong in that regard. > > > For me, IP address matching check does not belong to save handler. > I would implement it in other place. > > What's the reason why you need to implement IP address matching in > save handler? To prevent session fixation? Doesn't matter, I was just giving you an example. Cheers, Andrey.