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


