单项选择题

下面哪个方法不属于session对象()。

A.getAttributeNames()
B.getServletContext()
C.invalidate()
D.addCookie(Cookie cook)