Zebra_Form::captcha_storage PHP Method

captcha_storage() public method

By default, captcha values are triple md5 hashed and stored in cookies, and when the user enters the captcha value the value is also triple md5 hashed and the two values are then compared. Sometimes, your users may have a very restrictive cookie policy and so cookies will not be set, and therefore, they will never be able to get past the CAPTCHA control. If it's the case, call this method and set the storage method to "session". In this case, call this method and set the the storage method to "session".
public captcha_storage ( string $method ) : void
$method string Storage method for CAPTCHA values. Valid values are "cookie" and "session". Default is "cookie". @since 2.8.9 @return void
return void
    function captcha_storage($method)
    {
        // if storage method is "session"
        if ($method == 'session') {
            // set the storage method
            $this->form_properties['captcha_storage'] = 'session';
        } else {
            $this->form_properties['captcha_storage'] = 'cookie';
        }
    }