diff --git a/packages/server/src/routes/index/logout.ts b/packages/server/src/routes/index/logout.ts index 148797bc4..05b4706e2 100644 --- a/packages/server/src/routes/index/logout.ts +++ b/packages/server/src/routes/index/logout.ts @@ -11,6 +11,7 @@ const router = new Router(RouteType.Web); router.post('logout', async (_path: SubPath, ctx: AppContext) => { const sessionId = contextSessionId(ctx, false); cookieSet(ctx, 'sessionId', ''); + cookieSet(ctx, 'adminSessionId', ''); await ctx.joplin.models.session().logout(sessionId); return redirect(ctx, `${config().baseUrl}/login`); });