When user submits a correct answer, captcha module stores $_SESSION['captcha_success_form_ids'][$form_id] unconditionally. This disables page cache for current user.

CommentFileSizeAuthor
#3 captcha-2021759-3.patch928 bytesolli
#1 captcha-2021759-1.patch1.06 KBolli

Comments

olli’s picture

Status: Active » Needs review
StatusFileSize
new1.06 KB

This patch stores form id in session only if persistence mode requires it.

soxofaan’s picture

Good point.

but why are you using switch instead of a simple if?

olli’s picture

StatusFileSize
new928 bytes

Thanks for the review. Here is a simple if.

Status: Needs review » Needs work

The last submitted patch, captcha-2021759-3.patch, failed testing.

olli’s picture

Status: Needs work » Needs review

#3: captcha-2021759-3.patch queued for re-testing.

soxofaan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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