Q28.webp
Hoàng Thái1

Q28.webp

Kizspy Question: 28
(Choose 1 answer)
You are developing a JSP application that requires user authentication. Explain how you would use session
management to track the user's login status and securely store user information.
<%@ page import="javax.servlet.http.HttpSession" %>
<%
HttpSession session = request.getSession(); session.setAttribute("loggedInUser", "username");
%>
A. Describe the purpose of the provided code and how the session is utilized for user authentication.
B. Propose enhancements to ensure secure session management and prevent session hijacking.
C. Explain how the code handles session timeouts.
D. Discuss the role of cookies in session management.

Thông tin

Category
PRJ301
Thêm bởi
Hoàng Thái1
Ngày thêm
Lượt xem
3,399
Lượt bình luận
9
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom