Web function design: login and logout

Design and implementation of login and logout

Login design

The StudentDao.jsp management page can only be redirected from the login page if the login is successful, and cannot be entered directly (implemented by page redirection). Next, simply design the administrator's login. After the administrator submits the login information, judge whether it corresponds to the information in the administrator table in the database. If the information is correct, the login will jump to the StudentDao.jsp page after successful login; login information. In addition, the cookie technology is used to realize the function of jumping to the StudentDao.jsp page after the first successful login, and the next automatic login. (Retention information is divided into four types: no retention (default); three days; seven days; permanent. If you choose to retain information, it will automatically jump to the StudentDao.jsp page every time you log in, so you need to add exit on the management page function.)

In the Web Front-End Combat: Preliminary Design of Management System Webpage article, the login page is designed, and after adding Cookie technology, the design is as follows:

insert image description here

Implementation of login

Ad

Guess you like

Origin blog.csdn.net/qq_56886142/article/details/127159177