mwform_secure_cookie

mwform_secure_cookie

Hook Type: filter
See hook in
Displaying hooks found in version: mw-wp-form.4.1.2

apply_filters('mwform_secure_cookie') is found 1 times:

  • /classes/models/class.session.php line 41
    		if ( isset( $_COOKIE[ $this->name ] ) ) {
    			$session_id = $_COOKIE[ $this->name ];
    		} else {
    			$session_id = sha1( wp_create_nonce( $this->name ) . ip2long( $this->get_remote_addr() ) . uniqid() );
    			$secure = apply_filters( 'mwform_secure_cookie', is_ssl() );
    			try {
    				set_error_handler( array( 'MW_WP_Form_Session', 'error_handler' ) );
    				setcookie( $this->name, $session_id, 0, COOKIEPATH, COOKIE_DOMAIN, $secure, true );
    			} catch ( ErrorException $e ) {
    			}
    		}