Forum Moderators: coopster

Message Too Old, No Replies

Multiple Domains and Cookies

sharing values from one to another

         

PHPer

9:43 pm on Nov 11, 2005 (gmt 0)

10+ Year Member



Hello,

I'm creating a web store that has shared SSL. To use it I will have to redirect users from my main domain (www.mysite.com) to their secure domain (secure.host.com/~mysite).

I was wondering what the best way is to share information from my site to the secure site (mainly items that the customer wants to buy). I'm using PHP and MySQL. I thought about using cookies but that doesn't seem to work.

Any suggestions would be great.

jatar_k

3:55 pm on Nov 12, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld PHPer,

Are they on the same box or does it just go to wherever their site may be?

If they are on the same box you could write it to db or post it

If they are not necessarily on the same box I would look at posting the info

NomikOS

4:07 pm on Nov 12, 2005 (gmt 0)

10+ Year Member



i) a cookie only can be read it by the domain was created:
www.mysite.com =/= secure.host.com/~mysite

ii) only is necessary a secure site for manage finantial info, so share items info over unsecure connection normally:

secure.host.com/~mysite?itemToBuy1=$price1&itemToBuy2=$price2

and process this info over the secure site.

iii) the best way for your users is offer them a well known "billing gateway" for their transactions. they do all finantial management over very secure servers and carrie with legal responsabilities, shipping, etc...

comment please :)

---

PHPer

6:30 pm on Nov 12, 2005 (gmt 0)

10+ Year Member



They are both on the same box so I'll either write it to the DB or post it on the address bar and do a get from that.

Thanks for your suggestions!