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:
Sam Minnee 2008-11-19 23:28:49 +00:00
parent 03c88ba020
commit 0eac163b11

View File

@ -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;
}
/**