Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:24354 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29237 invoked by uid 1010); 12 Jul 2006 18:30:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 29219 invoked from network); 12 Jul 2006 18:30:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 12 Jul 2006 18:30:30 -0000 X-PHP-List-Original-Sender: ralph@smashlabs.com X-Host-Fingerprint: 69.2.42.244 unknown Linux 2.4/2.6 Received: from ([69.2.42.244:36197] helo=users.smashlabs.com) by pb1.pair.com (ecelerity 2.1.1.3 r(11751M)) with ESMTP id A3/CF-63905-0CF35B44 for ; Wed, 12 Jul 2006 14:30:26 -0400 Received: (qmail 7064 invoked from network); 12 Jul 2006 13:30:03 -0500 Received: from unknown (HELO ?216.136.107.103?) (ralph@smashlabs.com@66.179.208.36) by 244.42.ntg.com with AES256-SHA encrypted SMTP; 12 Jul 2006 13:30:03 -0500 Message-ID: <44B540FF.7060102@smashlabs.com> Date: Wed, 12 Jul 2006 13:35:43 -0500 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: internals Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Confirmation of bug in 5.1.4 for session_regenerate_id() From: ralph@smashlabs.com (Ralph Schindler) I have not dug super deep into this problem but it seems as though if I try to call session_regenerate_id() after having set session.save_path with custom values, i get an error. My guess is that session_regenerate_id() is having issues with the save_path var. This is my test script: file: ../htdocs/test.php SESSION ID BEFORE: " . $id_before . "\n"; echo "SESSION ID AFTER : " . session_id(); ?> The first 5 times it runs, it works fine... which means the file was created with the proper permissions and at the proper location. The 5th run produces this: SESSION ID BEFORE: 36236b948b074164d5344184a79ceeff SESSION ID AFTER : 759d5771cbcd3535c03660cc056385df Warning: Unknown: open(../application/var/sessions/sess_759d5771cbcd3535c03660cc056385df, O_RDWR) failed: No such file or directory (2) in Unknown on line 0 Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (;666;../application/var/sessions) in Unknown on line 0 My permission on that directory are 777.. so technically there should be no problem. /home/ralph/development/vhosts/framework.dev.smashlabs.com/application/var drwxrwxrwx 2 ralph users 4096 Jul 12 13:30 sessions