Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Logout event?
Hi folks ;)
According to the official documentation, there is no logout admin event: http://www.textpattern.net/wiki/index.php?title=Admin_Events_and_Steps
I would like to delete a personnal cookie on logout into a plugin code.
Do you think it is possible?
What’s the best practice?
Thanks by advance for your (best) advices,
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Re: Logout event?
Hi Pat, try to use some admin_side callback, and check for gps('logout')
.
Offline
Re: Logout event?
Yep. Thanks.
But dealing with subdomain cookies is a pain (if I can create it on multi-sites installation, unfortunately, I can’t delete it):
https://github.com/cara-tm/pat-public-bar/commit/a88d69e25c675d5cf1063f609b0ca459d323aa67
Patrick.
Github | CodePen | Codier | Simplr theme | Wait Me: a maintenance theme | [\a mi.ni.ma]: a “Low Tech” simple Blog theme.
Offline
Pages: 1