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
@ -354,7 +354,6 @@ class Security extends Controller {
|
||||
$member->LogIn();
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Show the "lost password" page
|
||||
*
|
||||
@ -506,6 +505,14 @@ class Security extends 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;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Factory method for the lost password form
|
||||
|
Loading…
x
Reference in New Issue
Block a user