cookie域名判断优化

This commit is contained in:
gongfuxiang 2024-11-05 16:03:39 +08:00
parent b3809db8c1
commit 737af75c6e

View File

@ -12,7 +12,7 @@
// +----------------------------------------------------------------------
// | Cookie设置
// +----------------------------------------------------------------------
$cookie_domain = MyFileConfig('common_cookie_domain', '', __MY_MAIN_DOMAIN__, true);
$cookie_domain = MyFileConfig('common_cookie_domain', '', '', true);
if(!empty($cookie_domain) && substr($cookie_domain, 0, 1) != '.')
{
$cookie_domain = '.'.$cookie_domain;