I had an issue with the Drupal installation on local setup that the login links are redirected to live. I have changed cookies name and base URL for my local environment, I have also emptied all cache tables, but still it redirects to the live site.
The following procedure I did to get the redirection correctly to my local environment
Login Redirection
Let us consider a situation in which we have to use the custom settings that has been done in a drupal site to another drupal site. The common way which is followed in this type of situation is by doing the same custom settings in the new site. But this is not that easy to do. The same situation can be handled by using the 'features module'. The following steps have to be followed in order to use the Features module in Drupal.