I am working on a 3rd party PHP server that does the following:
When a user logins in:
ini_set("session.name","APPSESSID");
session_start();
When a user logs out:
unset( $_SESSION['user'] );
unset( $user );
session_destroy();
The problem is that on logout, APPSESSID is not actually deleted at the client browser. It gets a different value on logout (It seems it becomes what is known as an anonymous cookie)
This is causing problems because I have an web sockets API that is checking if the UA sends the APPSESSID cookie in its connect request and this cookie is being sent by the client even after it logs out of the PHP app as the cookie doesn't really get deleted, just rewritten.
How do I ensure the cookie is actually deleted on logout ?
thanks