Everything I found about this error message is saying that either there's no session started or I have no rights, unfortunately neither of those is the case.
My session is active and by the time I try to destroy it in my logout
method I get
warning: session_destroy(): session object destruction failed
My symptoms seem to be quite like the ones in this question which, sadly, has no answers. Also when I try to log out a couple of times it destroys the session successfully. Sometimes it takes 2 logouts some times 5 it's never the same amount, but it also never destroys it from the first attempt. I find this really awkward, can someone give me some advice?