Changed setcookie to respect session.expires date and not recounting it.