I want to redirect the user to profile page after they log in. i tried with some modules but those could not help. i am using D7 version of drupal and tried with login modules
Install and enable the Login Destination module, It have the option to redirect to the specified page.
The Login Destination module allows you to customize the destination that a user is redirected to after logging in, registering to the site (7.x), using a one-time login link or logging out (7.x). The destination can be an internal page or an external URL. It is possible to specify certain conditions like referring pages or user roles and make the destination depend upon them. You may use PHP snippets to provide custom conditions and destinations. It is also possible to keep users on the currently visited page after logging in or out.
Hope this will help you,
In Drupal 7 you can use RULES instead of using any modules only if you looking for redirection.
admin/config/workflow/rules/reaction/addto add new rule
Now enter the RULE name and select the event on which you want to trigger this RULE
Now its time to give some condition(if required) and to trigger the action.
In Action select Page redirect
Give the redirect URL and and check Force redirect
If the rule is not working means, there may be a other same event with higher weight. Therefore you need to increase you rules weight.