/** * Add session param * * @return Mage_Core_Model_Url */ public function addSessionParam() { $session = Mage::getSingleton('core/session'); if (!self::$_encryptedSessionId) { $helper = Mage::helper('core'); if (!$helper) { return $this; } self::$_encryptedSessionId = $session->getEncryptedSessionId(); } $this->setQueryParam($session->getSessionIdQueryParam(), self::$_encryptedSessionId); return $this; }
public function addSessionParam() { $session = Mage::getSingleton('core/session'); if (!self::$_encryptedSessionId) { $helper = Mage::helper('core'); if (!$helper) { return $this; } self::$_encryptedSessionId = $session->getEncryptedSessionId(); } $this->setQueryParam(Mage_Core_Model_Session_Abstract::SESSION_ID_QUERY_PARAM, self::$_encryptedSessionId); return $this; }