Path and query data stored as session variable not retrieved - Joomla! Forum - community, help and support


in joomla 2.5 module have following php script, intended keep track of request , referrer headers.

code: select all

$url =& jfactory::geturi();
$p = $url->getpath();
$q = $url->getquery();
$rqst = array(0=>$p,1=>$q);

$session =& jfactory::getsession();

if ($session->has('rqst')) {
    $refer = $session->get('rqst');
} else {
    $refer = array(0=>null,1=>null);
}

$session->set('refer',$refer);
$session->set('rqst',$rqst);

// turn off when live!!!
dump($_session);


from inspecting $_session variables clear rqst being saved, on next cycle recovered ("/",""). thought might url rewriting, have turned on , off without success. doing this? protected variables?

this topic unrelated languages. moving right forum.





Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support