the connection (code after a redirect is not guarranteed to be run).
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@9201
7612ce4b-ef26-0410-bec9-
ea0150e637f0
// now lets go through the tree and delete the folders
walkTreeInPreOrderEmptyTrash(0, $imap_stream, $foldersTree);
+sqimap_logout($imap_stream);
+
+// close session properly before redirecting
+session_write_close();
$location = get_location();
header ("Location: $location/left_main.php");
-sqimap_logout($imap_stream);
-?>
\ No newline at end of file
+?>