Index: cookie_check.module
===================================================================
RCS file: /cvs/drupal-contrib/contributions/modules/cookie_check/cookie_check.module,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 cookie_check.module
--- cookie_check.module	10 Mar 2008 18:37:14 -0000	1.1.2.2
+++ cookie_check.module	1 Jun 2008 17:35:07 -0000
@@ -43,10 +43,16 @@
  * If the cookie set previously is not present, redirect.
  */
 function cookie_check_submit($form_id, $form_values) {
+  global $user;
+  
   if (!isset($_COOKIE['cookie_check'])) {
     unset($_REQUEST['destination']);
     drupal_goto('cookie_check');
   }
+  elseif ($user->uid > 0 && $_REQUEST['destination'] == 'cookie_check') {
+    unset($_REQUEST['destination']);
+    drupal_goto('<front>');
+  }
   // Set some time in the past. Use the value for the Expires header.
   setcookie('cookie_check', TRUE, 280299600, '/', ini_get('session.cookie_domain'));
 }
