[RESOLVED.. Pilot error]
This was the issue. I was not passing the variable on pageC
header('Location: pageC.php?screenname='.$screenname);
I am sending a visitor to a page that contains a variable (screenname) and pulls additional information from a database based on the variable.
IE.
domain.com/page1.php?screenname=karol
page1.php
then uses a session to store the variable
$_SESSION['screenname']=$_GET["screenname"];
When they bookmark this page and return, it only remembers page1.php
without the variable
and of course nothing from the database.
I'd like to set something up to remember the variable upon return
What approach would be best?
Yes.. Here's more
pageA.php receives the variable (screenname)
domain.com/pageA.php?screenname=karol
(pageA.php looks like this)
session_start();
$_SESSION['screenname']=$_GET["screenname"];
This page figures out if it's an Android, iPhone, or standard browser based on USER_AGENT
header('Location: pageB.php?screenname='.$screenname);
pageB.php (Records a hit to the sites statistics - This needs to be here)
$_SESSION['screenname']=$_GET["screenname"];
header('Location: pageC.php?screenname='.$screenname);
pageC.php is the page that gets bookmarked and starts with:
session_start();
$screenname = $_SESSION['screenname'];
header('Location: pageC.php);
How do I get the variable if needed from the get and still keep it upon revisit?