'Unable to verify your data submission' error on Yii2, but only on several cases

I’m using Yii version 2.0.6, advanced template. I got several notification from the log that someone using my app has got ‘Unable to verify your data submission’. The problem is, I myself can’t reproduce the problem, and the problem only occur several times, while most of the users don’t get this problem. Here are some logs for the problem :

  • pastebin. com/98BN9jkS

  • pastebin. com/h1CcgdEu

  • pastebin. com/qSQa4RrE

  • pastebin. com/Zhp0jmNX

I am using adcanced template with backend and frontend in the same domain. Here are my config file :

  • Backend config : pastebin. com/gpXJ5qAV

  • Frontend config : pastebin. com/ZHgdr5P4

I also already using <?= Html::csrfMetaTags() ?> in my layout. This the <head> section of my layout : pastebin. com/4N6z84aN

What might be the problem?

Also, I’m sorry for the links. This is my first post on the forum, and I can’t embed links in my post yet, so I separate each links with a space.

Thank you.

Try and implement independent sessions as explained here: http://yii2-user.dmeroff.ru/docs/usage-with-advanced-template

Hi, thank you for your reply. I already implement it. This is the config:

Frontend config:


 'user' => [

            'identityClass' => 'common\models\User',

            'enableAutoLogin' => true,

            'identityCookie' => [

                'name' => '_frontendUser',

                'path' => '/',

                'httpOnly' => true,

            ],

        ],

'session' => [

            'name' => '_frontendSessionId',

            'savePath' => __DIR__ . '/../runtime/sessions',

            'cookieParams' => [

                'path' => '/',

            ],

        ],



Backend config:




'user' => [

            'identityClass' => 'common\models\User',

            'enableAutoLogin' => true,

            'identityCookie' => [

                'name' => '_backendUser',

                'path' => '/',

                'httpOnly' => true,

            ],

        ],

'session' => [

            'name' => '_backendSessionId',

            'savePath' => __DIR__ . '/../runtime/sessions',

            'cookieParams' => [

                'path' => '/',

            ],  

        ],



The full config is on the first post.

hI,

was wondering if [member=luqman.sungkar] could solve this?

I’m running into something similar

thanks

Could you please create your own topic for your issue? Thanks.