FileDocCategorySizeDatePackage
SessionCheck.javaAPI DocExample507Wed Feb 11 14:21:20 GMT 2004com.jspservletcookbook

SessionCheck

public class SessionCheck extends HttpServlet

Fields Summary
Constructors Summary
Methods Summary
public voiddoGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)

        
		HttpSession session = request.getSession(false);
		if (session == null){
		    response.sendRedirect("/dbproj/login.jsp");
	    } else {
		    response.sendRedirect("/dbproj/menu.jsp");
		}