Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:100065 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 92240 invoked from network); 27 Jul 2017 17:03:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jul 2017 17:03:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=lists@rhsoft.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=lists@rhsoft.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain rhsoft.net designates 91.118.73.15 as permitted sender) X-PHP-List-Original-Sender: lists@rhsoft.net X-Host-Fingerprint: 91.118.73.15 mail.thelounge.net Received: from [91.118.73.15] ([91.118.73.15:63143] helo=mail.thelounge.net) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/12-10671-FDC1A795 for ; Thu, 27 Jul 2017 13:03:28 -0400 Received: from srv-rhsoft.rhsoft.net (Authenticated sender: h.reindl@thelounge.net) by mail.thelounge.net (THELOUNGE MTA) with ESMTPSA id 3xJJG32QYmzXMl; Thu, 27 Jul 2017 19:03:23 +0200 (CEST) To: Mailing-List php Message-ID: Date: Thu, 27 Jul 2017 19:03:23 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: de-CH Content-Transfer-Encoding: 7bit Subject: session_start() should not reset $_SESSIOn if it's not empty From: lists@rhsoft.net ("lists@rhsoft.net") currently i try to optimize our system so that the landing-page if it does not contain forms and when no user is logged in could be cached with APCu which works fine so far there is still a early session_start(); and while delay that would be probably possible like it's happening currently with database connection on-demand but there are some important things written in $_SESSION which i can't delay and the sample below shows that they would get lost in case it's not a cache hit ___________________________________