From 8bd78f77d8962929c3c2a8a9ba1d8e1bcf2b0fb7 Mon Sep 17 00:00:00 2001 From: Sean Harvey Date: Wed, 21 Oct 2009 02:21:05 +0000 Subject: [PATCH] MINOR Supress session warnings in session_regenerate_id() for a win32 environment (from r81984) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@89712 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- security/Member.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/security/Member.php b/security/Member.php index 0668b6853..093aa1b38 100644 --- a/security/Member.php +++ b/security/Member.php @@ -173,7 +173,9 @@ class Member extends DataObject { $file = ''; $line = ''; - if(!headers_sent($file, $line)) session_regenerate_id(true); + // @ is to supress win32 warnings/notices when session wasn't cleaned up properly + // There's nothing we can do about this, because it's an operating system function! + if(!headers_sent($file, $line)) @session_regenerate_id(true); } /**