/**
  * Redirects the user to Google's AuthSub login page so that they can login to access restricted functions.
  * The URL in the $next parameter must be registered with Google.  At the URL specified there, the "token" value must be pulled from
  * the request and passed to {@see Picasa::authorizeWithAuthSub()} for the authorization to be complete.
  *
  * @access public
  * @static
  * @param string $next The URL that the user should be redirected to after visiting the login page.  This URL must be
  *                     registered with Google in advance.  See
  *                     {@link http://code.google.com/apis/accounts/docs/RegistrationForWebAppsAuto.html}.
  * @param int $session Must be either 1 or 0.  This indicates if the login should be transferable to a session
  *                     token, which is valid for a long time, wherease the default token is only useable once.
  *                     1 to enable session tokens, 0 to disable.
  * @return void
  */
 public static function redirectToLoginPage($next, $session = 1)
 {
     $url = Picasa::getUrlToLoginPage($next, $session);
     header("Location: {$url}");
 }