(I think you can leave the session cookie to .sciences-po.fr. I don't know what happend for 'Time' cookie.
If you have more information on your server, and why cookie with subdomain can not be set. Maybe you have another Yii elsewhere ?
Denis
PS: last chance: update internal.php
Code:
'enableCsrfValidation'=>false,// CSRF protection
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Deactivation of CSRF give me an error page which said that my session is expired, all the time. Even if my cookie cache is cleared.
If you have more information on your server, and why cookie with subdomain can not be set. Maybe you have another Yii elsewhere ?
My server is running Apache 2.2 with PHP 5.5.9, I don't have other Yii applications, but I have a Piwik and a personal PHP site which are working great and use PHP sessions and cookies like Limesurvey.
I test with 2 installation and cookie domaine .sondages.pro : this break all system.
Can you test adding this in your .htaccess:
php_value session.cookie_domain "cdsp.sciences-po.fr"
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Not sure , testing some system, and you don't have same system than me ....
Can not find a real fix here ....
PS: did you have suhosin on this server ? If yes : deactivate it. (simulation on)
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
I am experiencing the same / similar problem "Bad Request - The CSRF token could not be verified"
The problem is that my client is experiencing this intermittently when submitting pages. (which generally has less than 10 answers on)
We also don't get the problem on the same page.
From 1200 people, 350 completed successfully and only 35 complained about the error.
The problem however is that it is still a significant amount of people.
Please can you give me a idea what I could look for, or how I could go about troubleshooting this problem?
The survey uses TOKENS
Allow multiple responses or update responses with one token = NO
Enable token-based response persistence = YES
We are using Version 2.05+ Build 140618
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
Hi Denis.
I got the "Bad Request CSRF token.." as well. And tried follow the link you provided, try to find it at config.php but failed, I can't find that CSRF part at the config.php
I may open the wrong config.php. Please let me know in which folder that config.php that contain CSRF?
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.
I was looking at this post with your response as I am going through I think the same issue here. We have LimeSurvey set up on the following domain like so:
media5.co.za/limesurvey
I created on DNS server a forwarding sub-domain shortsurveys.talkinsight.com with masking so the url - https://media5/limesurvey would then show as shortsurveys.talkinsight.com
I deduced that the issue revolving around getting the message below was the fact that the framework is getting muddled up by the domain name as it knows it is media5.co.za as what is provided by the server and not shortsurveys.talkinsights.com:- Bad Request
The CSRF token could not be verified
I saw your response to this post. I made a text addition to my config file, bt before adding this, would the below text be ok for what I had described for this to work? :-
'savePath' => '/limesurvey', : remove this : let the the default if it's OK.
I test more with
'path' => '/',
'domain' => 'shortsurveys.talkinsights.com',
but in fact : i'm unsure : depend a lot of server. This can be a broken sessionPath (but you surely don't have the right on /limesurvey directory on server.
Assistance on LimeSurvey forum and LimeSurvey core development are on my free time.
I'm not a LimeSurvey GmbH member. -
Professional support
-
Plugins, theme and development
. I don't answer to private message.