Function setLoginCookie
Sets the SMF-style login cookie and session based on the id_member and password passed. - password should be already encrypted with the cookie salt. - logs the user out if id_member is zero. - sets the cookie and session to last the number of seconds specified by cookie_length, or ends them if cookie_length is less than 0. - when logging out, if the globalCookies setting is enabled, attempts to clear the subdomain's cookie too.
		
		Package: SMF
Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Auth.php
	
	Copyright: 2020 Simple Machines and individual contributors
License: BSD
Author: Simple Machines https://www.simplemachines.org
Located at Sources/Subs-Auth.php
| integer | $cookie_length | How many seconds the cookie should last. If negative, forces logout. | 
| integer | $id | The ID of the member to set the cookie for | 
| string | $password = '' | The hashed password |