session doesn't update more than one update with cache on - Joomla! Forum - community, help and support


hello
i'm trying put info in session:

code: select all

class agroncrosscontroller extends jcontroller
{

   function setlibs($cid)
   {
      $session =& jfactory::getsession();
      $session->set("searchlibs", $cid, "com_agroncross");
   }
   
   function initlibs()
   {
      $cid   = jrequest::getvar( 'cid', array(), 'post', 'array' );
      jarrayhelper::tointeger($cid); // verify values integer
      if($cid)
      {
         $this->setlibs($cid);
      }
   }

   function display()
   {
      $this->initlibs();
      parent::display();
   }

}

this code work once when cache on. after 1 update session isn't updatable. if disable cache it's work perfectly. how avoid , put session on times (including cache)?

thanks






Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support