18591 Posts in 4875 Topics by 2285 members
General Questions
SilverStripe Forums » General Questions » Custom action uplon logout
General questions about getting started with SilverStripe that don't fit in any of the categories above.
Moderators: martimiz, Howard, Sean, Ryan M., biapar, Willr, Ingo, swaiba
|
Page:
1
|
Go to End | |
| Author | Topic: | 278 Views |
-
Custom action uplon logout

18 August 2011 at 12:41pm
I want to trigger a certain action whenever a user logs out.
I want to destroy the cookie XYZ.
Where should I put this?
setcookie("XYZ", null, -1);
-
Re: Custom action uplon logout

19 August 2011 at 1:11pm
There is a extension hook in Member::logOut(). If you create a decorator for your Member class and implement the memberLoggedOut() function that will be called every time a member logs out (though it doesn't cover the case of session expiring)
| 278 Views | ||
|
Page:
1
|
Go to Top |


