"Jasper Bryant-Greene" <ja******@gmail.com> wrote in message
news:aj*********************@news.xtra.co.nz...
Ken wrote: How do I carry Session variables between secure website (https) to
unsecured website(http)?
Ken
If the domain name is the same, eg. http://www.example.com/ and
https://www.example.com/ then just use a cookie (see setcookie() function)
If not, pass the session name in the URL (provided
session.use_only_cookies is disabled) eg. if the session name is
PHPSESSID then call
http://www.example.com/script.php?PHPSESSID=[sessionid]
--
Jasper Bryant-Greene
Cabbage Promotions
I tried these and they do not work. I receive a parse error. The ? seems
to be the problem.
$sessionid = session_id();
$sessionname=session_name();
header("Location:
http://".$_SERVER['HTTP_HOST']."/add_pic.php?".$sessionname."=".$sessionid;
header("Location:
http://".$_SERVER['HTTP_HOST']."/add_pic.php?".session_name=session_id;
header("Location:
http://".$_SERVER['HTTP_HOST']."/add_pic.php?".session_name=[session_id];
header("Location:
http://".$_SERVER['HTTP_HOST']."/add_pic.php?session_name=[session_id]";
Ken