prompted for password too often
changed the base URL in civicrm.settings.php . now works fine .

if (!defined('CIVICRM_UF_BASEURL')) {
  define( 'CIVICRM_UF_BASEURL'      , 'http://localhost/site/'); 
}

is changed to 

if (!defined('CIVICRM_UF_BASEURL')) {
  define( 'CIVICRM_UF_BASEURL'      , 'http://myipaddress/site');
}