I want to add two vars
$_SESSION['back_url'] and $_SESSION['current_url'];
$_SESSION['back_url'] is for storing the history back page
$_SESSION['current_url'] is for $_SERVER['REQUEST_URL']
I want to add two vars
$_SESSION['back_url'] and $_SESSION['current_url'];
$_SESSION['back_url'] is for storing the history back page
$_SESSION['current_url'] is for $_SERVER['REQUEST_URL']
Easier than you think.
$_SESSION['back_url'] = "enter your back URL here" ;
$_SESSION['current_url'] = "enter your current URL here" ;
Reading them back is as simple as
$back_url = $_SESSION['back_url'] ;
$current_url = $_SESSION['current_url'];
Having said that though, I suspect that just knowing this isn't going to take care of what it is that you are actually wanting to do.
What is the problem you are trying to solve?
Cheers
Rod
no mater why I want to add two items in $_SESSION;
can anyone tell me how to add them for no reasion?