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);
}
/**
... ... @@ -276,10 +276,10 @@ class AbstractAction extends Controller_Abstract
protected function getUid()
{
if (!$this->_uid) {
$cookie = $this->getCookie('_UID');
$cookie = $this->getCookie('_UID');
if (!empty($cookie)) {
$cookieList = explode('::', $cookie);
if (isset($cookieList[1]) && is_numeric($cookieList)) {
$cookieList = explode('::', $cookie);
if (isset($cookieList[1]) && is_numeric($cookieList[1])) {
$this->_uid = $cookieList[1];
$this->_uname = $cookieList[0];
}
... ...