Restrict access page (original)

xiaoxiao2021-03-06  78

Author: Wang Zhiwei <% String studentID = (String) session.getAttribute ( "userName"); // here studentID value is first stored in the session after a successful login at the login page // into session if (studentID == null ) // If the value is empty {response.sendredirect ("stuloginingin.jsp"); // Jump to the login page}%>

转载请注明原文地址:https://www.9cbs.com/read-108504.html

New Post(0)