mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
API CHANGE: Deprecated Controller::PastVisitor(), it generates a lot of unused cookies
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@66268 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
03c88ba020
commit
0eac163b11
@ -79,9 +79,6 @@ class Controller extends RequestHandler {
|
||||
if(Director::isTest() && $this->basicAuthEnabled && Security::database_is_ready()) {
|
||||
BasicAuth::requireLogin("SilverStripe test website. Use your CMS login", "ADMIN");
|
||||
}
|
||||
|
||||
//
|
||||
Cookie::set("PastVisitor", true);
|
||||
|
||||
// Directly access the session variable just in case the Group or Member tables don't yet exist
|
||||
if(Session::get('loggedInAs') && Security::database_is_ready()) {
|
||||
@ -405,7 +402,8 @@ class Controller extends RequestHandler {
|
||||
* @return boolean
|
||||
*/
|
||||
function PastVisitor() {
|
||||
return Cookie::get("PastVisitor") ? true : false;
|
||||
user_error("Controller::PastVisitor() is deprecated", E_USER_NOTICE);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user