/** * return an array with data for the session info element * @return array */ public function getSessionInfo() { /** * @var Mage_Customer_Model_Session $session * @var Mage_Log_Model_Visitor $visitorLog */ $session = $this->_getCustomerSession(); $sessionId = $session->getEncryptedSessionId(); $visitorLog = $this->_visitorLog->load($sessionId, 'session_id'); return array('encrypted_session_id' => hash('sha256', $sessionId), 'last_login' => $this->_getLastLoginTime($session, $visitorLog), 'order_source' => $this->_getOrderSource(), 'rtc_transaction_response_code' => null, 'rtc_reason_codes' => null, 'time_on_file' => null, 'time_spent_on_site' => $this->_getTimeSpentOnSite($visitorLog)); }