user = JetspeedSecurity.getUser(userName);
if (user.getPerm("logincookie","").equals(loginCookieValue)) {
//cookie is present and correct - log the user in
data.setUser(user);
user.setHasLoggedIn(new Boolean(true));
user.updateLastLogin();
data.save();
}
} catch (LoginException noSuchUser) {
//user not found - ignore it - they will not be logged in automatically
} catch (org.apache.jetspeed.services.security.UnknownUserException unknownUser) {