Usando sessão com Joomla

From Basef
Revision as of 15:32, 9 September 2015 by Admin (Talk | contribs) (Criou página com 'Atribuindo valores: <source lang="php"> $session =& JFactory::getSession(); $session->set( 'chavesessao', 'valor' ); </source> Lendo valores: <source lang="php"> $session =...')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Atribuindo valores:

$session =& JFactory::getSession();
$session->set( 'chavesessao', 'valor' );

Lendo valores:

$session =& JFactory::getSession();
$valor = $session->get( 'chavesessao', 'valor padrão' );