1

I set up an online petition using CiviCRM 4.6 on Drupal 7.

During the process, the status of the petition is stored in two cookies ("signed" and "confirmed"), which controls to process flow.

Both cookies are valid for 24 hours.

However, the drawback is, that it is not possible to enter another petition directly after the first one from the same pc - since the cookies remain valid fr 24 hours.

Is there a possibility to to limit the cookie lifetime to the session? So that the cookies are deleted, when the browser window is closed?

Thank in advance!

1

Aah,

Indeed, the cookie should apply only to the petition (ie contain the petition id).

It's a bug and shouldn't be difficult to fix. Do you or someone in your team have the skills to fix it? PR welcome ;)

  • Hi, though I have some knowledge in customizing and bug fixing, I have no clue where to change that. Any hint? – Detlev Sieber Oct 14 '15 at 15:33
  • 1
    Do a search on setcookie in the source code. In is used only once in the CiviCRM code base. See github.com/civicrm/civicrm-core/… . – Kainuk - CiviCooP Nov 7 '16 at 20:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.