Created
June 5, 2012 04:48
-
-
Save marczhermo/2872715 to your computer and use it in GitHub Desktop.
Joomla: Session Handling (works on v.2.5)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| When you want to save something in session please use: | |
| $mainframe = &JFactory::getApplication(); | |
| $mainframe->setUserState('sessionname',$sessionvalue); | |
| Where you want to get session value please use: | |
| $mainframe = &JFactory::getApplication(); | |
| $value = $mainframe->getUserState('sessionname'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment