Welcome to Geeklog, Anonymous Saturday, July 19 2025 @ 02:37 pm EDT
Geeklog Forums
Token issue with Chrome browser
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
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
$token = SEC_createToken();
$html = '<input type="hidden" name="' . CSRF_TOKEN . '" value="' . $token . '"' . XHTML . '>';
Theme is professional.
Any help welcome ?
Ben
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
11
12
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
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
Ben
13
10
Quote
Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
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?

Do you have any problems with tokens in the core plugins using the same site with chrome?
Is it only the professional theme?
11
15
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
This seems to be related to theme. I changed
to
in header.thtml file and this solved the problem.
Ben
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
16
13
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Sorry this not solved the problem and this not a theme related.
Ben
Ben
13
14
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
This bug is related to the generated content. Maybe a chrome bug like the empty src sometime ago.
Ben
Ben
13
11
Quote
Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
Do you know the exact content that causes the problem?
16
8
Quote
Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Not yet. I'm searching

14
10
Quote
All times are EDT. The time is now 02:37 pm.
- Normal Topic
- Sticky Topic
- Locked Topic
- New Post
- Sticky Topic W/ New Post
- Locked Topic W/ New Post
- View Anonymous Posts
- Able to post
- Filtered HTML Allowed
- Censored Content