I had to tweak the module because I am making a questionnaire for university students most of whom will quite possibly fill in the form at computer clusters on campus so all of them behind the same ip address. Thus I decided to turn off ip address validation using the tweak in the following comment:
http://drupal.org/node/246470#comment-2225794
to make the validation cookie-only.
Alas the webform cookie gets deleted in the case of anonymous users just by simply clicking the Refresh/Reload button of the browser. Is there any way to correct the code to have a cookie that is kept till the browser is closed? Normally this would be ideal for my needs that each student fills in the form then closes the browser and goes away, later another student gets to the uni computer, opens the form again and can fill it in again.
Comments
Comment #1
quicksketchThis sounds like you're asking how to fix a modification you've made to the module, for which I don't provide support.
Comment #2
tiwaz commentedOkay, I undo the the modification I made to the module and restore webform_submissions.inc to what it was. Would you please then help me in my pursuit?
So I am now using the original webform_submissions.inc.
Please allow me to rewrite my request:
I am making a questionnaire for university students most of whom will quite possibly fill in the form at computer clusters on campus so all of them behind the same ip address. Thus I need ip address validation turned off and to have a cookie-only validation.
Is there any way to correct the manage this so that to have one cookie after submission that is kept till the browser is closed? Normally this would be ideal for my needs that each student fills in the form then closes the browser and goes away, later another student gets to the uni computer, opens the form again and can fill it in again. It is unpredictable how many students and on what frequency are gonna fill it in so I don't see any point in setting interval limits.
Comment #3
tiwaz commentedI am making a questionnaire for university students most of whom will quite possibly fill in the form at computer clusters on campus so all of them behind the same ip address. Thus I need ip address validation turned off and to have a cookie-only validation.
Is there any way to manage this so that to have one cookie after submission that is kept till the browser is closed? Normally this would be ideal for my needs that each student fills in the form then closes the browser and goes away, later another student gets to the uni computer, opens the form again and can fill it in again. It is unpredictable how many students and on what frequency are gonna fill it in so I don't see any point in setting interval limits.
Comment #4
quicksketchThis is not currently possible. I've reopened #246470: Allow cookies as sole voter validation.