OPTINMONSTER_SHOW_CAMPAIGN::set_cookie( string $campaign_id )

set_cookie


Description Description

Send the cookie to the UI


Top ↑

Parameters Parameters

$campaign_id

(Required)


Top ↑

Return Return

(void)


Source Source

File: src/integrations/optinmonster/actions/optinmonster-show-campaign.php

	public function set_cookie( $campaign_id ) {

		$cookie_name     = 'ua_show_campaign';
		$cookie_lifetime = time() + ( 86400 * 30 ); // 86400 = 1 day
		setcookie( $cookie_name, $campaign_id, $cookie_lifetime, '/' );

	}