Re-enabled session_regenerate_id()

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@48165 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-01-17 04:50:02 +00:00
parent a1451739a4
commit d2b25999c8

View File

@ -88,21 +88,12 @@ class Member extends DataObject {
} }
/** /**
* Regenerate the session_id, if possible. * Regenerate the session_id.
* Calls session_regenerate_id(), unless Windmill is controlling the browsing session. * This wrapper is here to make it easier to disable calls to session_regenerate_id(), should you need to. They have caused problems in certain
* Windmill is a testing framework that can't handle session_regenerate_id() calls. * quirky problems (such as using the Windmill 0.3.6 proxy).
*/ */
static function session_regenerate_id() { static function session_regenerate_id() {
// This has been temporarily disabled. session_regenerate_id(true);
return;
if(strpos($_SERVER['HTTP_REFERER'],'windmill-serv') !== false) {
Session::set('isWindmill', true);
}
if(!Session::get('isWindmill')) {
session_regenerate_id(true);
}
} }
/** /**