How do I configure the maximum number of sessions a client can open with the repository?
dfc.session.max_count in dfc.properties
HI,
I want to limit the session per user. Like if user already login into Repository then user should not able to login from other machine with same userID
Can't do it. Neither at DFC nor Content Server level. You could customize it at the client side, depending what client you use (e.g. after login, check it another active session already exists and if so disconnect the user)
What is your functional goal ?
I am using customizee SSO in which index.jsp take the current user of windows and then through Authentication scheme I am creating the session of dmadmin and then passing the logintickt of user :
try { sess = request.getSession(); System.out.println("obtained session"); IDfClient dfClient = DfClient.getLocalClient(); IDfLoginInfo li = new DfLoginInfo(); li.setUser(USERNAME); li.setPassword(PASSWORD); sessionMgr = dfClient.newSessionManager(); sessionMgr.setIdentity(DOCBASE_NAME, li); session = sessionMgr.getSession(DOCBASE_NAME);
if(null!=sess.getAttribute("UserID")) actualUser=sess.getAttribute("UserID").toString().trim();
sess.setAttribute("UserID", "");
if(null!=actualUser) loginTicket=session.getLoginTicketForUser(actualUser); } catch(Exception e) { e.printStackTrace(); return null; } finally{ if(session!=null) { sessionMgr.release(session); } } if (sess != null) { getser(sess,loginTicket); return DOCBASE_NAME; } else { DfLogger.debug(this, "HTTP session was null", null, null); return null; }
}
public String getLoginComponent(HttpServletRequest request, HttpServletResponse response, String docbase, ArgumentList outArgs) { return null; } public void getser(HttpSession sess,String ticket) { try{ AuthenticationService service= new AuthenticationService(); service.login(sess, DOCBASE_NAME, actualUser,ticket,""); }