Package net.naijatek.myalumni.modules.common.helper

Examples of net.naijatek.myalumni.modules.common.helper.OnlineUserManager


             
              int sessionTimeout = setupSessionTimeout(session);
 
              // adding the user user the list of online users
              token.setLastRequestTime(new Date());       
              OnlineUserManager manager = OnlineUserManager.getInstance();
              manager.addOnlineUser(token, sessionTimeout);
              //sCtx.setAttribute("onlineusers", manager.getOnlineUsers(sessionTimeout));
              setServletContextObject(request, "onlineusers", manager.getOnlineUsers(sessionTimeout));
            
             
              session.setAttribute(BaseConstants.IS_ONLINE, BaseConstants.BOOLEAN_YES);
              session.setAttribute(BaseConstants.IS_ADMIN, token.getIsAdmin());
             
View Full Code Here


     HttpSession session = request.getSession(true);
 
     int sessionTimeout = setupSessionTimeout(session);
     MemberVO token = getCurrentLoggedInUser(request);
     if (token != null){
       OnlineUserManager manager = OnlineUserManager.getInstance();
       manager.removeOnlineUser(token.getMemberUserName());
       ServletContext sCtx = request.getSession().getServletContext();
       sCtx.setAttribute("onlineusers", manager.getOnlineUsers(sessionTimeout));
     }
    
     if (session != null) {
         session.removeAttribute(BaseConstants.USER_CONTAINER);
         logger.info("User successfully logged out...");
View Full Code Here

   * Clean up any open resources.
   */
  public void cleanUp() {
    logger.info("==> Auto logout. Cleaning up Session ojects...");

    OnlineUserManager manager = OnlineUserManager.getInstance();
    manager.removeOnlineUser(token.getMemberUserName());

    if (token != null) {
      securityService.logout(token.getMemberUserName());
    }

View Full Code Here

TOP

Related Classes of net.naijatek.myalumni.modules.common.helper.OnlineUserManager

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.