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:
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
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
Post a Comment