Created
June 29, 2012 12:13
-
-
Save AmyStephen/3017615 to your computer and use it in GitHub Desktop.
Untested example of how to set/get Session data in Joomla
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
$session = JFactory::getSession(); | |
$value = $session->get('first_article_found', 0); | |
if ($value == 0) { | |
$session->set('first_article_found', 1); | |
} else { | |
return; | |
} | |
//do your thing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment