Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:73454 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81941 invoked from network); 27 Mar 2014 12:06:02 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Mar 2014 12:06:02 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.213.51 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.213.51 mail-yh0-f51.google.com Received: from [209.85.213.51] ([209.85.213.51:53428] helo=mail-yh0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 21/72-64394-82414335 for ; Thu, 27 Mar 2014 07:06:01 -0500 Received: by mail-yh0-f51.google.com with SMTP id f10so3378447yha.38 for ; Thu, 27 Mar 2014 05:05:57 -0700 (PDT) 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=hjzzNi285/h1lWw1ARanFxQqNrui0JvkpdfW8X/icLk=; b=EO8bg4VMkrSiKVZZ6WBrwhbnZKTcnL3Ig4LsCo7Uz9t8C1191NuV0wnetQ2Hxd3nHh FFALD+eimAgm/G5d+AwkXlyJfnlLwjWnE6wt+QI8Le9drICjduW6PKYO00ag4aednE35 x4wHw2WH1DA0/H+3G8m2SFRtkdCKv2qmpSgU0= 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=hjzzNi285/h1lWw1ARanFxQqNrui0JvkpdfW8X/icLk=; b=c7BXKwMaEwkjkpnOMi1P2jsu9u6QbnJfrOPrQOHBLBHKsi5iQ9qZYLKwf0L78sAO2l /wCQz/21ER1BgJ0etvcwzdr8loElq9jFyZHTMI8c/4jiiJQL6NZ3+gkQN+eQNKsF+lgs 1aKwhFaSnHzGQuHFtmRIeGamAWJb+FIICVeynPvHl6cW1Ez4Ca5mm7ZzEMkCVaxsCgZ5 Kv0Yhma47H66Qr1lp4GckgG+E8pkZlLEucZJ+EP7ZNsGVoo86o7ETCUFcer+9wMmkIYl PGAgi6bOhJ3rvr8JCsN5gwscwbKzvnOrwzr5C3lVtYoA06KSj8Xr5U1kS8Nxg05O9p2c 7JFg== X-Gm-Message-State: ALoCoQlDEnBVxXp8p2HbdEOMC3OAyan1I/VlFCsVPaf5p7sxjDuzTelY+03aoEeOE3ISXNz92z4c MIME-Version: 1.0 X-Received: by 10.236.134.140 with SMTP id s12mr191666yhi.138.1395921957133; Thu, 27 Mar 2014 05:05:57 -0700 (PDT) Received: by 10.170.188.139 with HTTP; Thu, 27 Mar 2014 05:05:57 -0700 (PDT) In-Reply-To: References: Date: Thu, 27 Mar 2014 14:05:57 +0200 Message-ID: To: Yasuo Ohgaki Cc: Julien Pauli , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: session_reset() and session_abort() to send errors From: narf@devilix.net (Andrey Andreev) Hi, > This function is useful for session save handlers that do not lock > session data. Example is memcached. This function could be used > re-read session data to mitigate over written session data with unlock > session data. > > Andrey, just because you don't think of usage, it does not mean it does not > mean unneeded or not useful. You are better to ask the reason behind why > first. > Good library should have defined API for specific tasks, too. You also has > misunderstanding about why delayed deletion for session_regenerate_id() > is mandatory. Yasuo ... There's no misunderstanding, I just have a disagreement with you about that issue and I'm tired of arguing over that. Let's just keep session_regenerate_id() in it's own thread, ok? But speaking of mandatory: locks are mandatory, so how are non-locking handlers an argument in all of this? Also, I didn't just question if there's a use case, I'm questioning if it is safe to use session_reset() at all. Re-reading doesn't imply discarding currently open resources and complerely re-initializing the session and from what I see - that's exactly what the function does, or am I missing something? Cheers, Andrey.