下列选项中,能够创建Cookie,并将当前时间作为值发送给客户端的代码是()
A.Cookie cookie = new Cookie(lastAccess.new Date.toLocaleString); request.addCookie(cookie); B.Cookie cookie = request.getCookies[0]; response.addCookie(cookie); C.Cookie cookie = request.getCookies[0]; request.addCookie(cookie); D.Cookie cookie = new Cookie(lastAccess.new Date.toLocaleString); response.addCookie(cookie)