How to change the duration of user access? By default Drupal keeps users logged in 2.000000 seconds, i modify in settings.php at the line: 

ini_set('session_cookie_lifetime',2000000);


It is right ?
Yes. You are correct. Changing these settings will change the session time for logged in users.