{
request.setAttribute(LOGIN_NAME, user);
SingleSignon singleSignon = getSingleSignon();
SessionImpl session;
if (isSessionSaveLogin())
session = (SessionImpl) request.getSession(true);
else
session = (SessionImpl) request.getSession(false);
String sessionId;
if (session != null)
sessionId = session.getId();
else
sessionId = request.getRequestedSessionId();
if (sessionId != null && singleSignon != null)
singleSignon.put(sessionId, user);