mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
b031c8ff8b
commit
a9ad1e79c1
@ -353,8 +353,7 @@ class Security extends Controller {
|
|||||||
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
|
$member = BasicAuth::requireLogin("SilverStripe login", 'ADMIN');
|
||||||
$member->LogIn();
|
$member->LogIn();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show the "lost password" page
|
* Show the "lost password" page
|
||||||
*
|
*
|
||||||
@ -505,6 +504,14 @@ class Security extends Controller {
|
|||||||
//Controller::$currentController = $controller;
|
//Controller::$currentController = $controller;
|
||||||
return $customisedController->renderWith($this->stat('template_main'));
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user