Announcement

Collapse
No announcement yet.

Login verification code sample

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Login verification code sample

    Dear All,

    I use below code to do login verification, anyone has better solution?

    <%@ page import="glog.util.remote.*,glog.webserver.session. *,glog.webserver.umt.*,javax.servlet.http.*" %>
    <%
    HttpSession vsession = request.getSession(true);
    UserManager um = (UserManager)SessionStore.getAttribute(session, "UserManager");
    if(um == null)
    {
    response.sendRedirect("http://OTMHOME");
    }
    %>
    Vincent Van
    OTM Customization Service
    [email protected]

  • #2
    Re: Login verification code sample

    Possibly I think not correctly but in OTM version JDK is 1.4.x and "UserManager" does not work with this version. It needs JDK 1.5

    Comment


    • #3
      Re: Login verification code sample

      Create servlet extends AbstractServletProducer

      public void process(HttpServletRequest request, HttpServletResponse response) throws Exception
      {
      if(!checkForLogin(request,response))
      {
      return;
      };
      }
      Vincent Van
      OTM Customization Service
      [email protected]

      Comment

      Working...
      X