function _getCookiePath() { if (YDStringUtil::endsWith(dirname(YD_SELF_SCRIPT), '/manage')) { $cookiePath = dirname(dirname(YD_SELF_SCRIPT)); } else { $cookiePath = dirname(YD_SELF_SCRIPT); } $cookiePath = rtrim(str_replace('\\', '/', $cookiePath), '/'); return $cookiePath . '/'; }