Blog

A Blog by DotJoomla

  • Home
    Home This is where you can find all the blog posts throughout the site.
  • Categories
    Categories Displays a list of categories from this blog.
  • Tags
    Tags Displays a list of tags that have been used in the blog.

Invalid Tokens

Posted by on in Joomla
  • Font size: Larger Smaller
  • Hits: 4579
  • 0 Comments
  • Subscribe to this entry
  • Print

Many of us have faced the "Invalid token" issue while working on any joomla website.

Joomla tokens were added into joomla as a security feature for forms. Whenever a form was submitted it was also submitted with the form which was checked and validated after submission. If this was missing or incorrect you will get the Invalid token issue.

It was mostly included in the login and registration forms. It has been also added to logout form in recent version of joomla (1.6+).

The reason behind is clear either the token is missing or token is incorrect.

Missing token may relate that it has not been added to the form so simply add the following code will fix the issue.

echo JHTML::_( 'form.token' );

Invalid token is also caused due to any kind of cache being enabled on the website.

One Solution is to make sure sure your Login module is set to "No Cache" . Another thing you might want to check is if your System Page Cache plugin is switched off.

0
Tagged in: Invalid Tokens

Vijay Singh is a web Developer with vast experience in the field. Has developed hundreds of websites. He is also a hobbiest blogger. He writes blogs when he is free ( not usually though ).

Comments

  • No comments made yet. Be the first to submit a comment

Leave your comment

Guest Saturday, 23 November 2024

Blog Archive

Login Form

Who's Online

We have 429 guests and no members online