Redirects within hook_user_login I'm writing a module that redirects the user on login and am having trouble getting anything to work. Here is what I tried within hook_user_login:

submission.info

name = Submission
description = Handles Redirect to node/add/page on Login 
core = 7.x


submission.module

function submission_user_login(&amp;$edit, $account) {
  //$_REQUEST['destination'] = 'node/add/page';
  //$GLOBALS['destination'] = 'node/add/page';
  //$edit['redirect'] = 'node/add/page';
  drupal_goto('node/add/page');
}
Try to change drupal_goto with $_GET['destination'], e.g.:

function submission_user_login(&amp;$edit, $account) {

   // Redirect user to to desired location.
   $_GET['destination'] = 'node/add/page';
}


Hope this will work.