"Invalid security token" when I save or log in
Your session expired. Reload the page and try again; if it keeps happening, raise Session Lifetime in Global Configuration.
Why it happens
Every Joomla form carries a security token that belongs to your session. If the session expired, the cookie was lost, or a cached page served an old token, Joomla refuses the form to protect you from forged requests.
Fix it
- Reload the page (to get a fresh token) and try again.
- If it keeps happening: clear your browser cookies for the site.
- Raise Session Lifetime in Global Configuration → System → Session (for example to 60 minutes) if you edit for a long time.
- Make sure login pages and forms aren't page-cached: exclude them in the System - Page Cache plugin, or in your host's cache.
- After a move, check
cookie_domainandcookie_pathin configuration.php are empty.
Good to know
- Two tabs with the same form, or the back button after logging out, also cause it. Just reload.
Sources
- Global Configuration – Joomla User Guide
- Cache – Joomla User Guide