Hi everyone,
I am developing a CMS(Content Management System). I need to know how i can make sessions in jsp. After creating the Session in a login page the data like username should added in the session.In another page , addArtikel.jsp, i want to contoll if someone is logged on or not, other wise he may not use this page.
How should i do this contoll in addartikel, when i have made this in the login page :
HttpSession s = request.getSession();
s.setAttribute("naam", Username);
I am developing a CMS(Content Management System). I need to know how i can make sessions in jsp. After creating the Session in a login page the data like username should added in the session.In another page , addArtikel.jsp, i want to contoll if someone is logged on or not, other wise he may not use this page.
How should i do this contoll in addartikel, when i have made this in the login page :
HttpSession s = request.getSession();
s.setAttribute("naam", Username);