In my list view I have added token in my form using
<?php echo JHtml::_( 'form.token' ); ?>
Then I have redirected from the list view to a controller's task like http://some/joomla/site/administrator/index2.php?option=com_users&task=edit&id=1
In the controller I checked for the token using
Session::checkToken() or jexit(Text::_('JINVALID_TOKEN'));
Now when I login through backend as Super User select any item to edit then I get an error message as The most recent request was denied because it had an invalid security token. Please refresh the page and try again.
Can anyone tell me how to fix this?
When I remove the check of checkToken() it works but I don't want to remove it.
Do we need to do some additional things?