读取客户端存储的Cookie,以下操作正确的是( )。
A: Cookie newCookie=new Cookie(String key,Object value);
B: response.addCookie(newCookie);
C: Cookie[] cookies=response.getCookies();
D: Cookie[] cookies=request.getCookies();
A: Cookie newCookie=new Cookie(String key,Object value);
B: response.addCookie(newCookie);
C: Cookie[] cookies=response.getCookies();
D: Cookie[] cookies=request.getCookies();
举一反三
- 写入Cookie对象,通过响应将Cookie写入客户端以下正确的是( )。 A: Cookie newCookie=new Cookie(String key,Object value); B: response.addCookie(newCookie); C: Cookie[] cookies=request.getCookies(); D: request.addCookie(newCookie);
- 下列选项中,用于获取客户端发给服务端的所有cookie对象的方法是( ) A: List cookies = request.getCookies(); B: Cookie[] cookies = request.getCookies(); C: List cookies = response.getCookies(); D: Cookie[] cookies = response.getCookies();
- 在下列选项中,正确创建并实现写入cookie的语句分别是( )。: Cookie cookie = new Cookie( String key, Object value )/#/Cookie cookie = new Cookie()/#/response.add(cookie )/#/response.addCookie(cookie)
- PHP用于存储cookie数据的超级全局变量是( A: $_COOKIES B: $_GETCOOKIES C: $_GETCOOKIE D: $_COOKIE
- 在PHP中用于存储cookie数据的超级全局变量是() A: $_COOKIES B: $_COOKIE C: $_GETCOOKIES D: $_GETCOOKIE