Why logout doesn't work from my extension

From Joomla! Documentation

Revision as of 04:08, 19 March 2011 by Chris Davenport (talk | contribs) (Added link to secure coding guidelines (for developers))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

There was a security fix in Joomla 1.6.1 to prevent users from being logged out from the site just by visiting a wrong page.

If you are getting Invalid token when you click logout, you need to add the token to the request. To find out more about how to do that, read Secure coding guidelines#Securing forms.