Walter_Kacynski
Feb 05, 2015Cirrostratus
PHP and session variable substitution
I want to evaluate the content of a session variable during logon page processing. session.server.landinguri=/?pw=0
This doesn't work
$landingUri = '%{session.server.landinguri}';
$pos = strpos($landingUri, 'pw');
if ($pos !== false) { ?>
true
This works!
$landingUri = '/?pw=0';
$pos = strpos($landingUri, 'pw');
if ($pos !== false) { ?>
true
Does anyone know how APM and PHP interact that would cause this problem? I assume that there is an issue with how special characters from the session variable are substituted during runtime. I have tried using double quotes with no luck.