references:joomla.framework:application:japplication-getuserstateTable of Contents
getUserState
Gets the value of the user state variable. User state variables are stored with the session and are persistent between requests. Syntaxmixed getUserState ( $key )
ExamplesIf the following code was executed on a previous page load: Example global $mainframe; $mainframe->setUserState( "$option.sampleState", "Stored value" ); then the following code: Example global $mainframe; echo $mainframe->getUserState( "$option.sampleState" ); will produce Result Stored value |


