From kfm-devel Sat Jun 30 15:40:28 2001 From: Dawit Alemayehu Date: Sat, 30 Jun 2001 15:40:28 +0000 To: kfm-devel Subject: PATCH: Delete Sesssion-Based cookies when closing konq-window X-MARC-Message: https://marc.info/?l=kfm-devel&m=99391570926459 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--------------Boundary-00=_G72RG0S3V8RCDSYGVGUP" --------------Boundary-00=_G72RG0S3V8RCDSYGVGUP Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Hi, Here is a simple patch that sends a dcop message from konqueror's main window dtor to delete session based cookies. Regards, Dawit A. --------------Boundary-00=_G72RG0S3V8RCDSYGVGUP Content-Type: text/x-diff; charset="iso-8859-1"; name="konq_mainwindow.diff" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="konq_mainwindow.diff" Index: konq_mainwindow.cc =================================================================== RCS file: /home/kde/kdebase/konqueror/konq_mainwindow.cc,v retrieving revision 1.900 diff -u -p -b -B -w -r1.900 konq_mainwindow.cc --- konq_mainwindow.cc 2001/06/24 09:34:25 1.900 +++ konq_mainwindow.cc 2001/06/30 15:34:03 @@ -263,6 +263,13 @@ KonqMainWindow::~KonqMainWindow() s_comboConfig = 0L; } + QByteArray params; + QDataStream stream(params, IO_WriteOnly); + stream << winId(); + if( !kapp->dcopClient()->send( "kcookiejar", "kcookiejar", + "deleteSessionCookies(long int)", params ) ) + kdDebug(1202) << "Could not delete session based cookies!" << endl; + kdDebug(1202) << "KonqMainWindow::~KonqMainWindow " << this << " done" << endl; } --------------Boundary-00=_G72RG0S3V8RCDSYGVGUP--