By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,491 Members | 3,230 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,491 IT Pros & Developers. It's quick & easy.

URGENT ssl/cookie problem

P: n/a
I am working on a shopping cart for a client and have struck a weird
problem.

The client's ssl setup is on a different url to the main site. As a result
we get two copies of our shopping cart session cookie generated - one under
each url. I gather the script is creating separate sessions for each url.

After the customer's payment approval/invoice is generated the cart is
supposed to be cleared, but only one of the cookies is being emptied.

How do I delete both session cookies from inside one url? Is this possible?

Thanks

Hamilton G Laughland
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
"Spidah" <h.*********@eggstra.co.nz> wrote in message news:<Ib****************@news.xtra.co.nz>...
I am working on a shopping cart for a client and have struck a weird
problem.

The client's ssl setup is on a different url to the main site. As a result
we get two copies of our shopping cart session cookie generated - one under
each url. I gather the script is creating separate sessions for each url.

After the customer's payment approval/invoice is generated the cart is
supposed to be cleared, but only one of the cookies is being emptied.

How do I delete both session cookies from inside one url? Is this possible?


1. Cookies are not accessible between domains.
2. Sometimes ago, it was reported that PHP sessions are not persistent
between http and https pages of *same domain* (Is it your case?). And
the suggestion provided was to pass the session id across the pages
manugally. But, I never faced such problem. Probably you may look at
<http://groups.google.com/groups?q=php+session+https>

--
http://www.sendmetoindia.com - Send Me to India!
Email: rrjanbiah-at-Y!com
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.