Authored by hf

modify to fixes bugs to plustar

... ... @@ -254,7 +254,7 @@ class AbstractAction extends Controller_Abstract
*/
public function setSession($name, $value)
{
Session::start('yohobuy_session')->__set($name, $value);
Session::start('yohobuy_session', null, 'yohobuy.com')->__set($name, $value);
}
/**
... ... @@ -264,7 +264,7 @@ class AbstractAction extends Controller_Abstract
*/
public function getSession($name)
{
Session::start('yohobuy_session')->__get($name);
return Session::start('yohobuy_session', null, 'yohobuy.com')->__get($name);
}
/**
... ... @@ -279,7 +279,7 @@ class AbstractAction extends Controller_Abstract
$cookie = $this->getCookie('_UID');
if (!empty($cookie)) {
$cookieList = explode('::', $cookie);
if (isset($cookieList[1]) && is_numeric($cookieList)) {
if (isset($cookieList[1]) && is_numeric($cookieList[1])) {
$this->_uid = $cookieList[1];
$this->_uname = $cookieList[0];
}
... ...