且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从管理面板销毁特定用户的会话数据

更新时间:2023-11-27 23:34:58

由于具有会话ID,因此可以很容易地劫持该会话,然后销毁它。只需从服务器获取会话ID并将其传递给此函数即可。

You can very easily hijack that session and then destroy it since you have the session id. Simply get the session id from the server and pass it this function.

function destroy_third_party_session($in_session_id){
  session_id($in_session_id); // Sets the session id;
  session_start(); // starts the session as that session id
  session_destroy(); // destroy the session
  session_commit();
}