There are sites that set a lot of cookies on login, and some of them are not really required and can be removed later, making the middleware think there was a logout.
One way to make logout detection more robust is to add a check that there was a redirect when the cookies were removed.
There are sites that set a lot of cookies on login, and some of them are not really required and can be removed later, making the middleware think there was a logout. One way to make logout detection more robust is to add a check that there was a redirect when the cookies were removed.