/** * Get encrypted session identifier. * No reason use crypt key for session id encryption, we can use session identifier as is. * * @return string */ public function getEncryptedSessionId() { if (!self::$_encryptedSessionId) { self::$_encryptedSessionId = $this->getSessionId(); } return self::$_encryptedSessionId; }
/** * Get ecrypted session identifuer * No reason use crypt key for session id encryption * we can use session identifier as is * * @return string */ public function getEncryptedSessionId() { if (!self::$_encryptedSessionId) { // $helper = AO::helper('core'); // if (!$helper) { // return $this; // } // self::$_encryptedSessionId = $helper->encrypt($this->getSessionId()); self::$_encryptedSessionId = $this->getSessionId(); } return self::$_encryptedSessionId; }
/** * Get ecrypted session identifuer * No reason use crypt key for session id encryption * we can use session identifier as is * * @return string */ public function getEncryptedSessionId() { if (!self::$_encryptedSessionId) { // $helper = Mage::helper('Mage_Core_Helper_Data'); // if (!$helper) { // return $this; // } // self::$_encryptedSessionId = $helper->encrypt($this->getSessionId()); self::$_encryptedSessionId = $this->getSessionId(); } return self::$_encryptedSessionId; }
public function getEncryptedSessionId() { if (!self::$_encryptedSessionId) { $helper = Mage::helper('core'); if (!$helper) { return $this; } self::$_encryptedSessionId = $helper->encrypt($this->getSessionId()); } return self::$_encryptedSessionId; }