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.
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?
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
Post a Comment