mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
a1451739a4
commit
d2b25999c8
@ -88,21 +88,12 @@ class Member extends DataObject {
|
||||
}
|
||||
|
||||
/**
|
||||
* Regenerate the session_id, if possible.
|
||||
* Calls session_regenerate_id(), unless Windmill is controlling the browsing session.
|
||||
* Windmill is a testing framework that can't handle session_regenerate_id() calls.
|
||||
* Regenerate the session_id.
|
||||
* 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
|
||||
* quirky problems (such as using the Windmill 0.3.6 proxy).
|
||||
*/
|
||||
static function session_regenerate_id() {
|
||||
// This has been temporarily disabled.
|
||||
return;
|
||||
|
||||
if(strpos($_SERVER['HTTP_REFERER'],'windmill-serv') !== false) {
|
||||
Session::set('isWindmill', true);
|
||||
}
|
||||
|
||||
if(!Session::get('isWindmill')) {
|
||||
session_regenerate_id(true);
|
||||
}
|
||||
session_regenerate_id(true);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user