diff --git a/files/routes/allroutes.py b/files/routes/allroutes.py index 41607bf4f..8a5e98fad 100644 --- a/files/routes/allroutes.py +++ b/files/routes/allroutes.py @@ -68,6 +68,17 @@ def after_request(response:Response): if user_id: r.delete(f'LIMITER/{SITE}-{user_id}/{request.endpoint}:{request.path}/1/1/second') + if SITE == 'rdrama.net': + counter = 0 + for key in request.cookies.keys(): + if key == app.config["SESSION_COOKIE_NAME"]: + counter += 1 + else: + response.delete_cookie(key) + + if counter > 1: + print(request.cookies.keys(), flush=True) + return response