removed duplicate call to setcookie in cookie(), fixes #30