function get_user_id()
{
global $cookie;
$userid = NULL;
if (isset($cookie->id_customer))
{
$userid = $cookie->id_customer;
}
return $userid;
}
为什么即使登录,用户 ID 仍然返回 null?
function get_user_id()
{
global $cookie;
$userid = NULL;
if (isset($cookie->id_customer))
{
$userid = $cookie->id_customer;
}
return $userid;
}
为什么即使登录,用户 ID 仍然返回 null?