====== getUserState ======
{#JAPI Joomla.Framework Application JApplication::getUserState #}
Gets the value of the user state variable. User state variables are stored with the session and are persistent between requests.
===== Syntax =====
mixed getUserState ( **$key** )
| **$key** | string | is a string containing the path of the state. |
===== Examples =====
If the following code was executed on a previous page load:
global $mainframe;
$mainframe->setUserState( "$option.sampleState", "Stored value" );
then the following code:
global $mainframe;
echo $mainframe->getUserState( "$option.sampleState" );
will produce
Stored value
----
~~DISCUSSION~~