0
Welcome Guest! Login
0 items Join Now

How to use session data in articles

    • Gibbo's Avatar
    • Gibbo
    • Rocketeer
    • Posts: 86
    • Thanks: 0

    How to use session data in articles

    Posted 13 years 3 months ago
    • I can't find any way to set/get session data within an article :oops:
      I understand (I think) the php functions -
      $session =& JFactory::getSession();
      $value = $session->get('pain'); and
      $session->set('pain', $value); but, if I put these inside of <?php ?> tags within an article they are just turned into html strings.

      What am I doing wrong? :cry:

Time to create page: 0.057 seconds