最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

php - Issue with WP_Session_Tokens::destroy() – Nothing happen - Stack Overflow

programmeradmin4浏览0评论

I have an issue with this code:

$manager = WP_Session_Tokens::get_instance(get_current_user_id());
$manager->destroy(0);

I want to destroy the session at index 0, but it's not working. How can I properly remove a specific session? If destroying a session is only possible with a token, how can I get the token of a specific session to remove it?

发布评论

评论列表(0)

  1. 暂无评论