Page 1 of 1

sessions, how to pass to another page

Posted: Sun Jun 17, 2007 11:26 am
by mikemcvey
Hi,

I have set up a shoppig cart to y site which uses a session veriable to pass the cart contents.
This is all working fine except when I force the use of a ssl connection

The shopping is done then I want to take gredit card details using https which is a different url

Code: Select all

 
//
if($_SERVER['HTTPS'] != 'on')
    {
        // If not, redirect
// chane from http://www.mysite.com to 
        $newurl = 'https://secure.bluehost.com/~mysite'.$_SERVER['REQUEST_URI'];
        header("location: $newurl");
    }
This caused me to lose all session data.
I have had a look in the config file and include file. IS the problem because it can't find the location of the session??
Any help greatly appreciated.....

Need to try and pass the session along the way but a bit of a newb :)

Mike



Mike

Re: sessions, how to pass to another page

Posted: Mon Jun 18, 2007 7:44 am
by mikemcvey
Hey,

Try this if you have my problem.

http://www.bluehostforum.com/archive/in ... -1310.html