Refactored [47068]: Member::logOut now calls memberLoggedOut on any extensions on Member.

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@60498 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Hayden Smith 2008-08-12 05:59:15 +00:00
parent ec9bcf337d
commit 5be532e96d

View File

@ -235,6 +235,8 @@ class Member extends DataObject {
Session::clear("loggedInAs"); Session::clear("loggedInAs");
self::session_regenerate_id(); self::session_regenerate_id();
$this->extend('memberLoggedOut');
$this->RememberLoginToken = null; $this->RememberLoginToken = null;
Cookie::set('alc_enc', null); Cookie::set('alc_enc', null);
Cookie::forceExpiry('alc_enc'); Cookie::forceExpiry('alc_enc');