Class **Phalcon\\Flash\\Session** ================================= *extends* abstract class :doc:`Phalcon\\Flash ` *implements* :doc:`Phalcon\\Di\\InjectionAwareInterface `, :doc:`Phalcon\\FlashInterface ` .. role:: raw-html(raw) :format: html :raw-html:`Source on GitHub` Temporarily stores the messages in session, then messages can be printed in the next request Methods ------- protected **_getSessionMessages** (*mixed* $remove, [*mixed* $type]) Returns the messages stored in session protected **_setSessionMessages** (*array* $messages) Stores the messages in session public **message** (*mixed* $type, *mixed* $message) Adds a message to the session flasher public **has** ([*mixed* $type]) Checks whether there are messages public **getMessages** ([*mixed* $type], [*mixed* $remove]) Returns the messages in the session flasher public **output** ([*mixed* $remove]) Prints the messages in the session flasher public **clear** () Clear messages in the session messenger public **__construct** ([*mixed* $cssClasses]) inherited from :doc:`Phalcon\\Flash ` Phalcon\\Flash constructor public **getAutoescape** () inherited from :doc:`Phalcon\\Flash ` Returns the autoescape mode in generated html public **setAutoescape** (*mixed* $autoescape) inherited from :doc:`Phalcon\\Flash ` Set the autoescape mode in generated html public **getEscaperService** () inherited from :doc:`Phalcon\\Flash ` Returns the Escaper Service public **setEscaperService** (:doc:`Phalcon\\EscaperInterface ` $escaperService) inherited from :doc:`Phalcon\\Flash ` Sets the Escaper Service public **setDI** (:doc:`Phalcon\\DiInterface ` $dependencyInjector) inherited from :doc:`Phalcon\\Flash ` Sets the dependency injector public **getDI** () inherited from :doc:`Phalcon\\Flash ` Returns the internal dependency injector public **setImplicitFlush** (*mixed* $implicitFlush) inherited from :doc:`Phalcon\\Flash ` Set whether the output must be implicitly flushed to the output or returned as string public **setAutomaticHtml** (*mixed* $automaticHtml) inherited from :doc:`Phalcon\\Flash ` Set if the output must be implicitly formatted with HTML public **setCssClasses** (*array* $cssClasses) inherited from :doc:`Phalcon\\Flash ` Set an array with CSS classes to format the messages public **error** (*mixed* $message) inherited from :doc:`Phalcon\\Flash ` Shows a HTML error message .. code-block:: php error('This is an error'); public **notice** (*mixed* $message) inherited from :doc:`Phalcon\\Flash ` Shows a HTML notice/information message .. code-block:: php notice('This is an information'); public **success** (*mixed* $message) inherited from :doc:`Phalcon\\Flash ` Shows a HTML success message .. code-block:: php success('The process was finished successfully'); public **warning** (*mixed* $message) inherited from :doc:`Phalcon\\Flash ` Shows a HTML warning message .. code-block:: php warning('Hey, this is important'); public *string* | *void* **outputMessage** (*mixed* $type, *string* | *array* $message) inherited from :doc:`Phalcon\\Flash ` Outputs a message formatting it with HTML .. code-block:: php outputMessage('error', message);