function my_gal_set_login_cookie($dosetcookie) {
// Only set cookie on wp-login.php page
return $GLOBALS['pagenow'] == 'wp-login.php';
}
add_filter('gal_set_login_cookie', 'my_gal_set_login_cookie');
// https://wp-glogin.com/docs/api/login-hooks/#gal_set_login_cookie
// Filter gal_set_login_cookie allows you to specify whether the plugin should set the wordpress_google_apps_login cookie on the current request. By default, the cookie is set on any request if it doesn’t already exist. However, it is normally only absolutely necessary to update this on requests to the wp-login.php page in most setups.