Authored by hf

modify to fixes bugs to plustar

@@ -254,7 +254,7 @@ class AbstractAction extends Controller_Abstract @@ -254,7 +254,7 @@ class AbstractAction extends Controller_Abstract
254 */ 254 */
255 public function setSession($name, $value) 255 public function setSession($name, $value)
256 { 256 {
257 - Session::start('yohobuy_session')->__set($name, $value); 257 + Session::start('yohobuy_session', null, 'yohobuy.com')->__set($name, $value);
258 } 258 }
259 259
260 /** 260 /**
@@ -264,7 +264,7 @@ class AbstractAction extends Controller_Abstract @@ -264,7 +264,7 @@ class AbstractAction extends Controller_Abstract
264 */ 264 */
265 public function getSession($name) 265 public function getSession($name)
266 { 266 {
267 - Session::start('yohobuy_session')->__get($name); 267 + return Session::start('yohobuy_session', null, 'yohobuy.com')->__get($name);
268 } 268 }
269 269
270 /** 270 /**
@@ -276,10 +276,10 @@ class AbstractAction extends Controller_Abstract @@ -276,10 +276,10 @@ class AbstractAction extends Controller_Abstract
276 protected function getUid() 276 protected function getUid()
277 { 277 {
278 if (!$this->_uid) { 278 if (!$this->_uid) {
279 - $cookie = $this->getCookie('_UID'); 279 + $cookie = $this->getCookie('_UID');
280 if (!empty($cookie)) { 280 if (!empty($cookie)) {
281 - $cookieList = explode('::', $cookie);  
282 - if (isset($cookieList[1]) && is_numeric($cookieList)) { 281 + $cookieList = explode('::', $cookie);
  282 + if (isset($cookieList[1]) && is_numeric($cookieList[1])) {
283 $this->_uid = $cookieList[1]; 283 $this->_uid = $cookieList[1];
284 $this->_uname = $cookieList[0]; 284 $this->_uname = $cookieList[0];
285 } 285 }