Package modele

Examples of modele.UserSession


     * get user login and password values
     */
    String curUserName = request.getParameter("login");
    String curpassword = request.getParameter("password");
    String resultPage = null;
    UserSession session = UserSession.getInstance();
   
    ActionStatus a = Dao.validLogin(curUserName, curpassword);
    if (a.isStatusValue()) {
      Dao.setCurrentUser(curUserName);
      request.setAttribute("ressources", Dao.getUser(curUserName)
View Full Code Here


   
    String commandName = request.getParameter("command");
   
    if (UserSession.getInstance().isTimeOut() || commandName == null || commandName.length() <= 0)
    { 
      UserSession session = UserSession.getInstance();
      session.authentifiedUser = null;
      session.sessionID = "";
      commandName="FrontController";
    }
   
    if (commandName.compareTo("Logout") == 0) {
      UserSession session = UserSession.getInstance();
      session.authentifiedUser = null;
      session.sessionID = "";
      commandName="FrontController";
    }
   
View Full Code Here

TOP

Related Classes of modele.UserSession

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.