1

我想一次只允许跨浏览器和 PC 的一个会话。如果在 Wordpress 中启动新会话,我想“断开”或注销旧会话。

4

2 回答 2

0

Seems you would hook into the account sharing function and expire the session from there. I think there will still be some limited access, the expired user may still have while their cookies remain on their system. This functionality does not exist. You would need to develop a plugin.

You can start from here: http://www.frank-verhoeven.com/using-session-in-wordpress/

Note: Maybe you get better answers from here

于 2013-02-02T07:14:15.487 回答
0

包括以下代码function.php

function kana_init_session()
{
  session_start();
}

add_action('init', 'kana_init_session', 1);

它对我有用,相信它也对你有用。我从这里学到了窍门。

于 2013-02-02T07:52:50.827 回答