// Check if user is already logged in, check for both the
// session attribute and the application cookie. If the
// session attribute is null, then set this to the
// application cookie, if both cookies are not null but
// different the user will be logged off.
String username = (String) req.getSession().getAttribute("portal.username");
String cookieUserName = AppRoutines.verifyCookie(req, res, 60);
if (username == null) {
username = cookieUserName;
if (username != null) { req.getSession().setAttribute(ePortalConstants.
EMP_NUM_ATTR_NAME,username);
}
}
Do we blame developers, or networking people for the gap in communication here?
Previous slide | Next slide | Back to first slide | View graphic version |