Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:12851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4364 invoked by uid 1010); 16 Sep 2004 06:23:07 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4308 invoked from network); 16 Sep 2004 06:23:07 -0000 Received: from unknown (HELO phaze.fireserve.net) (12.180.40.2) by pb1.pair.com with SMTP; 16 Sep 2004 06:23:07 -0000 Received: from fireserve.net (ip-12-180-41-190.fireserve.net [12.180.41.190]) by phaze.fireserve.net (8.12.10/linuxconf) with ESMTP id i8G6N4Im026212 for ; Wed, 15 Sep 2004 23:23:05 -0700 Message-ID: <41493138.2090106@fireserve.net> Date: Wed, 15 Sep 2004 23:22:48 -0700 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-MailScanner: Found to be clean X-MailScanner-SpamCheck: not spam, SpamAssassin (score=-3.959, required 6, AWL, BAYES_00) Subject: session workings, please From: gearond@fireserve.net (Dennis Gearon) At one time, I thought that I read about a problem with PHP4 sessions involving the recognition of the session expiration in the session engine. The problem was that the session variables were read into the script's variables BEFORE the expiration time was checked, or that sesson files were ONLY deleted by the garbage collection routine. Anyone remember this? So, I'm asking if someone here can answer to which order the following tasks run when a script is requested? ------------------------------------------------------------ [A] read session file if file and PHPSESSID both exist at request time [B] delete sesssion if expired (is there a separate process for this, or does only garbage collection delete sessions?) [C] load session vars [D] run garbage collection