I want to set session id to my user object in Custome Code But unable to set it.
userobj = userService.getUser(user);
socialService.linkUserFacebookAccount(user, fbtoken);
Session session2 = sessionService.getSession(userobj.userName);
userobj.setSessionId(session2.getSessionId());
userobj.getSessionId(); ///This Returns Null