I noticed after submitting a form protected by Captcha, that my anonymous user suddenly had a session cookie. I tracked it down, and it gets set in captcha_validate(), but it's only needed if the persistence setting is one of the SKIP_ONCE_SUCCESSFUL types. So I created a patch which only sets the $_SESSION variable if that is the persistence setting.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grayle created an issue. See original summary.

Grayle’s picture

FileSize
1.21 KB

Added correct contribution, and clearer comment in the patch

Grayle’s picture

Status: Active » Needs review
Chris Matthews’s picture

The patch in #2 to captcha.module applied cleanly to the latest captcha 8.x-1.x-dev, but still needs to be reviewed.

andrey.troeglazov’s picture

Assigned: Unassigned » andrey.troeglazov

I will review it in several hours.

jernejbeg’s picture

Status: Needs review » Reviewed & tested by the community

The patch applies and looks good to me. Thanks for the effort!

wundo’s picture

wundo’s picture

  • wundo committed 4b0360f on 8.x-1.x authored by Grayle
    Issue #2996495 by Grayle, Chris Matthews, andrey.troeglazov, jernejbeg,...
wundo’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.