Posted on: 10/01/12 06:26am
By: ::Ben
Trying to implement tokens on sphere plugin. Works fine on Firefox but token failed on Chrome.
The recorded token in the DB is not the same as that on the hidden input
Text Formatted Code
//new token
$token = SEC_createToken();
$html = '<input type="hidden" name="' . CSRF_TOKEN . '" value="' . $token . '"' . XHTML . '>';
Theme is professional.
Any help welcome ?
Ben
Re: Token issue with Chrome browser
Posted on: 10/01/12 08:35am
By: ::Ben
When I display the form with the token, under FF or IE there is only 1 token created and recorded in the db but 2 with chrome (Version 22.0.1229.79 m) and the first one is deleted from the db
Ben
Re: Token issue with Chrome browser
Posted on: 10/01/12 09:14am
By: Laugh
For some reason this problem sounds familiar but I can't remember the issue I had ...
Do you have any problems with tokens in the core plugins using the same site with chrome?
Is it only the professional theme?
Re: Token issue with Chrome browser
Posted on: 10/01/12 11:50am
By: ::Ben
This seems to be related to theme. I changed
Text Formatted Code
<html{lang_attribute}{xmlns}>
to
Text Formatted Code
<html{html_attribute}{xmlns}>
in header.thtml file and this solved the problem.
Ben
Re: Token issue with Chrome browser
Posted on: 10/01/12 12:23pm
By: ::Ben
Sorry this not solved the problem and this not a theme related.
Ben
Re: Token issue with Chrome browser
Posted on: 10/03/12 12:44pm
By: ::Ben
This bug is related to the generated content. Maybe a chrome bug like the empty src sometime ago.
Ben
Re: Token issue with Chrome browser
Posted on: 10/03/12 01:01pm
By: Laugh
Do you know the exact content that causes the problem?
Re: Token issue with Chrome browser
Posted on: 10/03/12 05:43pm
By: ::Ben
Not yet. I'm searching