setaCookie() At this point it just does the same thing as PHP setcookie, but now we have the option doing some checking before actually setting a cookie.
Parameters: $cookieName, $userID, $duration - these are the values for setting the cookie. Expects: $cookieName = the name of the cookie, $userID= the userID from the db table, $duration= how long till the cookie expires.
Location: class.sodapop.php
public function setaCookie($cookieName, $userID, $duration) {
setcookie($cookieName, $userID, time()+$duration);
}