ENHANCEMENT: Prevent CMS session timing out and losing content - Added Security/ping as a destination for session-preserving ajax pings

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@62994 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Sam Minnee 2008-09-24 04:17:33 +00:00
parent b031c8ff8b
commit a9ad1e79c1

View File

@ -353,8 +353,7 @@ class Security extends Controller {
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
$member->LogIn();
}
/**
* Show the "lost password" page
*
@ -505,6 +504,14 @@ class Security extends Controller {
//Controller::$currentController = $controller;
return $customisedController->renderWith($this->stat('template_main'));
}
/**
* Security/ping can be visited with ajax to keep a session alive.
* This is used in the CMS.
*/
function ping() {
return 1;
}
/**