mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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
This commit is contained in:
parent
0b7d187817
commit
8bd78f77d8
@ -173,7 +173,9 @@ class Member extends DataObject {
|
|||||||
$file = '';
|
$file = '';
|
||||||
$line = '';
|
$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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user