单项选择题

获得session属性的username使用()。

A.session.getAttribute("username")
B.session.setAttribute("username")
C.session.getParameter("username")
D.session.setParameter("username")