[bugfix] Memory leak in security manager: session mappings are never cleared.