wmarkow / mybb-wordpress-theme

Embedds your MyBB forum into your Wordpress page. It provides the visual integration only.
2 stars 0 forks source link

URl prefixed with 'www' causes the 'token mismatch' error. #17

Open witold-markowski-sentaca opened 8 years ago

witold-markowski-sentaca commented 8 years ago

When prefixing the URL (int the browser) with 'www' we got the 'tiken mismatch error' and the MyBB content is not displayed.

witold-markowski-sentaca commented 8 years ago

The plugin works in two steps:

The MyBB output page prepared in the first step is stored in user's php session. This content is fetched in the second step.Second step hits the server with no 'www' prefix. First step may hit the server with or without 'www' prefix; depends on user. PHP core is 'www prefix'-sensitive while creating user sessions: it may create different user sessions for both steps; which causes the MyBB content not available (token mismatch error) when using 'www' prefix.