Thank you for your post. We have full details here explaining how you can restrict it to the wp-login.php page only (for example):
https://wp-glogin.com/docs/api/login-hooks/#gal_set_login_cookie
I hope this helps, but if you would like to discuss further the best way to reach me is by email: contact@wp-glogin.com
Regards,
Dan
Thanks for your help, Dan.
where do we paste that code?
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’);