TeamHG-Memex / autologin-middleware

Scrapy middleware for the autologin
37 stars 15 forks source link

More robust logout detection - check for redirect #12

Open lopuhin opened 8 years ago

lopuhin commented 8 years ago

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.