Warning: session_destroy(): Trying to destroy uninitialized session with phpCas
问题 I am facing a problem today with the phpCas library https://wiki.jasig.org/display/CASC/phpCAS. Problem is the following, when I try to use some logout function, I got the message Warning: session_destroy(): Trying to destroy uninitialized session After giving a quick look into the phpCas's library code, I manage to figure out where the problem comes from, here is a snippet of a logout function : session_write_close(); header('Location: '.$cas_url); phpCAS::trace("Prepare redirect to : ".$cas