public String doCheckin() {
		if (FacesContext.getCurrentInstance().getExternalContext()
				.getSessionMap().containsKey("Administrateur"))
			return type = "Administrateur";
		else if (FacesContext.getCurrentInstance().getExternalContext()
				.getSessionMap().containsKey("Employe"))
			return type = "Employe";
		System.out.println(FacesContext.getCurrentInstance().getExternalContext().getSessionMap().get("Administrateur"));
		
		HttpServletRequest request = (HttpServletRequest) FacesContext
				.getCurrentInstance().getExternalContext().getRequest();
		type = request.getParameter("type");
		System.out.println(type);
		Object object = managementServicesLocal.checkin(myLogin, myPwd, type);
		if (object == null)
			return "KO";
		if (type == "Employe")
			employe = (Employe) object;
		else if (type == "Administrateur")
			administrateur = (Administrateur) object;
		if (employe != null) {
			FacesContext.getCurrentInstance().getExternalContext()
					.getSessionMap().put("Administrateur", administrateur);
			return type;
		} else if (administrateur != null) {
			FacesContext.getCurrentInstance().getExternalContext()
					.getSessionMap().put("employe", employe);
			return type;
		} else {
			return "KO";
		}

	}