title: How do I retrieve a success message in Magento?
body: <p>How do I retrieve a success message in Magento?</p>
  
  <pre><code>Array
  (
      [core] =&gt; Array
          (
              [_session_validator_data] =&gt; Array
                  (
                      [remote_addr] =&gt; 192.168.151.102
                      [http_via] =&gt; 
                      [http_x_forwarded_for] =&gt; 
                      [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
                  )
  
              [session_hosts] =&gt; Array
                  (
                      [technova2] =&gt; 1
                  )
  
              [messages] =&gt; Mage_Core_Model_Message_Collection Object
                  (
                      [_messages:protected] =&gt; Array
                          (
                          )
  
                      [_lastAddedMessage:protected] =&gt; Mage_Core_Model_Message_Success Object
                          (
                              [_type:protected] =&gt; success
                              [_code:protected] =&gt; Your review has been accepted for moderation
                              [_class:protected] =&gt; 
                              [_method:protected] =&gt; 
                              [_identifier:protected] =&gt; 
                              [_isSticky:protected] =&gt; 
                          )
  
                  )
  
              [just_voted_poll] =&gt; 
              [visitor_data] =&gt; Array
                  (
                      [] =&gt; 
                      [server_addr] =&gt; -1062692990
                      [remote_addr] =&gt; -1062693018
                      [http_secure] =&gt; 
                      [http_host] =&gt; technova2
                      [http_user_agent] =&gt; Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.70 Safari/533.4
                      [http_accept_language] =&gt; en-US,en;q=0.8
                      [http_accept_charset] =&gt; ISO-8859-1,utf-8;q=0.7,*;q=0.3
                      [request_uri] =&gt; /~rahuls/sextoys/index.php/review/product/list/id/169/
                      [session_id] =&gt; 21bq2vtkup5m1gtghknlu1tit42c6dup
                      [http_referer] =&gt; http://technova2/~rahuls/sextoys/index.php/review/product/list/id/169/
                      [first_visit_at] =&gt; 2010-06-16 05:49:56
                      [is_new_visitor] =&gt; 
                      [last_visit_at] =&gt; 2010-06-16 06:00:00
                      [visitor_id] =&gt; 935
                      [last_url_id] =&gt; 23558
                  )
  
              [last_url] =&gt; http://technova2/~rahuls/sextoys/index.php/review/product/list/id/169/
          )     
  )
  </code></pre>
  
  <p>After posting the review I want to display the message: "Your review has been accepted for moderation". It appears in the $_SESSION array, but how do I fetch it? Please help. Thanks in advance.</p>