I'm trying to track keywords using session variables. I have no problem printing these variables on any page, but when I try to call them in a header redirect, they don't show. I've read and apparently this is a bug in php? Or maybe it was and it got fixed.
Any advice on how to get my session variables into the URL in my header redirect?
Here is what I have on the landing pages-
and this is my redirect:
Thanks!
Any advice on how to get my session variables into the URL in my header redirect?
Here is what I have on the landing pages-
PHP:
<?php
session_start();
session_register ("YSMRAW");
session_register ("YSMKEY");
session_register ("OVKEY");
session_register ("OVRAW");
session_register ("KEYWORD");
$HTTP_SESSION_VARS ["YSMRAW"] = $_GET["YSMRAW"];
$HTTP_SESSION_VARS ["YSMKEY"] = $_GET["YSMKEY"];
$HTTP_SESSION_VARS ["OVRAw"] = $_GET["OVRAW"];
$HTTP_SESSION_VARS ["OVKEY"] = $_GET["OVKEY"];
$HTTP_SESSION_VARS ["KEYWORD"] = $_GET["KEYWORD"];
?>
and this is my redirect:
PHP:
<?php
session_start();
header( 'Location: http://x.azjmp.com/xxxx?sub=' . $_SESSION['YSMRAW'] . 'X' . $_SESSION['OVRAW'] . 'X' . $_SESSION['KEYWORD'] ) ;
?>
Thanks!