session_destroy() does not destroy all user sessions. You will need to write to permanent media (database, text file, etc.), and then call session_destroy() to kill its own session. Then, all pages check when they load. If it has a special command (for example, normal - 0 , the destroy command - 1 ), ask them to call session_destroy() .
Jonah source share