title: Auto logout in yii
body: <p>How to do auto logout after some minute if the user is idle 
  I am using yii framework.</p>
  
  <p>I can set logout time under user component in main.php 
  but the question is how to check the user is idle? </p>