--- a/branches/2.5.4/cgi-bin/yabb2/Sources/Load.pm
+++ b/branches/2.5.4/cgi-bin/yabb2/Sources/Load.pm
@@ -1,6 +1,6 @@
 ###############################################################################
 # Load.pm                                                                     #
-# $Date: 2013-06-25 15:33:13 +0000 (Tue, 25 Jun 2013) $
+# $Date: 2013-07-03 15:15:05 +0000 (Wed, 03 Jul 2013) $
 ###############################################################################
 # YaBB: Yet another Bulletin Board                                            #
 # Open-Source Community Software for Webmasters                               #
@@ -15,7 +15,7 @@
 use CGI::Carp qw(fatalsToBrowser);
 our $VERSION = '2.5.4';
 
-$loadpmver = 'YaBB 2.5.4 $Revision: 1081 $';
+$loadpmver = 'YaBB 2.5.4 $Revision: 1085 $';
 
 sub LoadBoardControl {
     $binboard = q{};
@@ -1067,6 +1067,19 @@
             -path    => "$pathval",
             -expires => "$expiration"
         );
+
+        my $adminpass = 'adminpass';
+        my $admincookie = "$cookieusername$adminpass";
+        if ( $yyCookies{$admincookie} ) {
+            push @otherCookies,
+              write_cookie(
+                -name    => "$admincookie",
+                -value   => q{},
+                -path    => q{/},
+                -expires => 'Thursday, 01-Jan-1970 00:00:00 GMT'
+              );
+            $yyCookies{$admincookie} = q{};
+        }
 
         foreach my $catid (@categoryorder) {
             if ( !$catid ) { next; }