472,951 Members | 1,792 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,951 software developers and data experts.

URGENT ssl/cookie problem

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
1 1870
"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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Craig Matthews | last post by:
hello, any idea why the following code does not work?!! <? $cookieExpire = 864000000; setcookie("a", "love", $cookieExpire); header("Set-Cookie: lc=50; expires=$cookieExpire");
7
by: Fnark | last post by:
Can anyone tell me why this code does not do what I want it to: <?php if (!isset($_COOKIE)) { setcookie("basket", $item_code, time()+60*60*24*30, "coursework", '', 0) ; } else { setcookie(...
10
by: Tony Archer | last post by:
Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a production box. On the dev box everything works fine, in production it hoses: One of...
1
by: Tony Archer | last post by:
(Forgive the dupicate post, I had left out the OS Version out of the prior post.) Gentlemen, your urgent help is needed in solving a STRANGE problem. I have two servers a dev box, and a...
7
by: Thaynann | last post by:
I am developin an application that access a web site, i can get to the first page of the site, but when i POST to get to other pages, it gives me a message (amongst the HTML code) "Session Timed...
2
by: Raghu Raman | last post by:
Hi, In javascript file i store 3 values under a single cookie array ,like var myarray = new Array(null); myarray = "field_1"; myarray = "field_2"; myarray = "field_3"; document.cookie...
17
by: jensen bredal | last post by:
Hello, i'm struggling with a somehow badly understood session scenario. I provide acces to my pages based on form authentication using Session cookies. Som of my pages are supposed to be...
3
by: Shapper | last post by:
Hello, I have a Cookie which can have one or many values. One of this values is "Culture". How can I change the "Culture" value which in inside the cookie? This is what I have: Dim cookie...
3
by: Tomasz J | last post by:
Hello Developers! A lot has been written about Java Script window.open() function and lost session state. But the most recent version of IE seems to handle it correctly. But now I have an...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.