'; if ($sysconf['logout_message']) { $msg .= 'alert(\''.__('You Have Been Logged Out From Library Automation System').'\');'; } $msg .= 'location.href = \''.SWB.'index.php?p=login\';'; // Disconnect Websocket $msg .= 'Server = new FancyWebSocket("ws://'.$sysconf['chat_system']['server'].':'.$sysconf['chat_system']['server_port'].'");'; $msg .= 'Server.bind("close", function( data ) { log( "Disconnected." ); });'; $msg .= ''; // unset admin cookie flag setcookie('admin_logged_in', true, time()-86400, SWB); // completely destroy session cookie simbio_security::destroySessionCookie($msg, COOKIES_NAME, SWB.'admin/', true);