Closed LorenzHetterich closed 4 months ago
Apparently even storing that single instance is broken.
This one has low priority though (as the bot isn't restarted often and adding a cookie through /ctfd-cookie
after each restart isn't that hard).
Should be fixed with the latest rewrite.
Right now, the way sessions survive bot restarts is that an
CTFdApi.CTFdAuth
instance containing the last cookie set by/ctfd-cookie
is stored. However, this does not work if multiple cookies need to be set. Instead of storing a singleCTFdAuth
instance, we should probably store a List of them (or cookies). But then, we should also add a command to remove a cookie or clear all cookies.