Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2015-08-04 07:28:58

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

#2 2015-08-04 14:54:34

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: Logout event?

Hi Pat, try to use some admin_side callback, and check for gps('logout').

Offline

#3 2015-08-06 08:54:07

Pat64
Plugin Author
From: France
Registered: 2005-12-12
Posts: 1,599
GitHub Twitter

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

Board footer

Powered by FluxBB