Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Session Vars missing in action

Status
Not open for further replies.

DeepBlerg

Technical User
Joined
Jan 13, 2001
Messages
224
Location
AU
Hi,

I have a site that has a shopping cart and when they check out I transfer to the secure SSL server. However upon doing this I loose all my session variables. I thought maybe I should POST the session variables to the secure site however the session contains a multi-dimensional shopping cart class which looks like this:

Code:
Array
(
    [cCart] => shopping_cart Object
        (
            [_cart] => Array
                (
                    [0] => Array
                        (
                            [ProductID] => 3
                            [quantity] => 1
                        )

                    [1] => Array
                        (
                            [ProductID] => 72
                            [quantity] => 2
                        )

                )

            [_shipping_amount] => 0
            [_gst_percent] => 0.1
            [_gst_amount] => 0
            [_sub_total] => 0
            [_total] => 0
            [_dblink] => 0
            [_table] => products
        )

)

Also I don't want to put the whole site on the secure server since its a shared certificate and it would popup the IE 'secure/nonsecure' warning on every page load, plus it would load slow.

Any ideas?
 
no they dont:

if the nonsecure is: shoppingsite.com

then the secure site would be: secure.parentserver.com/~shopppingsite.com
 
Then that's the problem.

Sessions, in their default configuration, use cookies to store the session store index. And cookies do not cross domain name bounds.

You can pass session indeces through URLs. It's ugly but it works. See look for the documentation on session.use_trans_sid.



Want the best answers? Ask the best questions: TANSTAAFL!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top