ttchiwandire 0 Newbie Poster

Hi guys out there! I've been developing a java web application using jsf, jpa crud generator and hibernate as the persistence provider. Everything has worked well up to until now that I want to authenticate my system users. If anyone can help with the how of keeping track of system users, login, logout displaying currently logged in user (authenticating users against the database), that would be greatly appreciated. Please, I kindly ask for java examples especially using jsf.