sessions, how to pass to another page

Talk about writing modules and plugins for CMS Made Simple, or about specific core functionality. This board is for PHP programmers that are contributing to CMSMS not for site developers
Post Reply
mikemcvey
Forum Members
Forum Members
Posts: 61
Joined: Tue May 02, 2006 4:08 am

sessions, how to pass to another page

Post 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
mikemcvey
Forum Members
Forum Members
Posts: 61
Joined: Tue May 02, 2006 4:08 am

Re: sessions, how to pass to another page

Post by mikemcvey »

Hey,

Try this if you have my problem.

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

Return to “Developers Discussion”