title: How to implement multiple user Login using sessions in JSF
body: <p>I am new to JSF, I am working on web project. </p>
  
  <ol>
  <li><p>I want to implement Login system, where multiple users can Login. Just like Facebook or any other website where you give username and password and access you account. </p></li>
  <li><p>The other thing I want is, if a user is not logged in and he wants to access a (restricted) url he must be redirected to Login page.</p></li>
  </ol>
  
  <p>I do not even know where to start, however I know how to do 'session tracking' in Servlet. </p>
  
  <p>can anyone suggest me good example or help me by a sample code.</p>