Index: trunk/admin/index.php
===================================================================
diff -u -r931 -r2310
--- trunk/admin/index.php	(.../index.php)	(revision 931)
+++ trunk/admin/index.php	(.../index.php)	(revision 2310)
@@ -99,8 +99,10 @@
 
 if (!admin_login() || GetVar('logout') || GetVar('expired') )
 {            
-    if(!headers_sent())
-      setcookie("sid"," ",time()-3600);
+    if( !headers_sent() )
+    {
+		setcookie('sid"','', time()-3600, $objConfig->Get("Site_Path").'/'.$admin );
+    }
     $objSession->Logout();
 	require_once($pathtoroot.$admin."/login.php");
 }