Invalid token with Joomla custom component - Joomla! Forum - community, help and support


i'm building custom joomla component , added form in template (default.php) file:

code: select all

echo jhtml::_( 'form.token' ); //add hidden token field prevent csrf


then check token in controller with:

code: select all

jrequest::checktoken() or die( 'invalid token' );


but no matter invalid token. have verified hidden type token created in form when view sources on html page. verified, in controller, value of token same:

code: select all

print_r(jutility::gettoken());


so if token same value, why on earth exiting invalid token message?






Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support