Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用的是最新版本,一旦用户登录Joomla 3.0,我需要删除,我不想再次使用相同的用户 ID --- 因此 Joomla 中的会话通过sessionlogin$session =& JFactory::getSession();
Joomla 3.0
session
login
$session =& JFactory::getSession();
知道如何设置用户名,以便他只能logged在网站上访问一次吗?
logged
像这样试试
$user = JFactory::getUser(); $session =& JFactory::getSession(); $session->set('userid',$user->id); //checking whether the user logged in or not $userid = $session->get('userid'); if($userid=='') { $session->set('userid',''); //set to blank }