Just a very simple question. I have set up a rather simple CMS in JSP. All I need is a security measure to maintain the system's privacy. Does anyone know of any tutorials that assist in building https sessions for simple networks??
I have more or less conquered (or grasped) the main portions of building databases, using CRUD, and making the programs interact between the java code and the JSP. This is basically the final hurdle before I can securely and confidently launch this thing and get it going.
Any and all information is always appreciated.
You might want to look into session management closely if your site is critical. In simple terms, make a form to get username/password. If they match, use jsp's
To login :
session.setAttribute("login", "true");
To check if the user is logged in,
boolean logged = session.getAttribute("login") != null
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.