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

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
 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
 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 ... Frown

Do you have any problems with tokens in the core plugins using the same site with chrome?

Is it only the professional theme?
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
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
 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
 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
 Quote

Status: offline
Site Admin
Admin
Registered: 09/27/05
Posts: 1475
Do you know the exact content that causes the problem?
 Quote

Status: offline
Forum User
Full Member
Registered: 01/14/05
Posts: 1569
Not yet. I'm searching Cool
 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