Skip to content

Instantly share code, notes, and snippets.

@AmyStephen
Created June 29, 2012 12:13
Show Gist options
  • Save AmyStephen/3017615 to your computer and use it in GitHub Desktop.
Save AmyStephen/3017615 to your computer and use it in GitHub Desktop.
Untested example of how to set/get Session data in Joomla
$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