[PHP] Session data lost in Firefox

2012-10-26 Thread John Boy
Hi

I have a wesite where PHP session data is passed page to page then shells 
out to Paypal for payment then back to my website for completion of 
transaction and update of mysql file. When using Firefox our session data 
and POST data from Paypal is lost. This has happend only recently and has 
worked happily in the past. Works in other browsers too. Anyone heard of 
same problems?

mywebpage - session data-mywebpage2-session data-paypal page-POST data 
+ session data-mywebpage3

-- 
Johniboy 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Session data lost in Firefox

2012-10-26 Thread Andrew Ballard
On Fri, Oct 26, 2012 at 8:49 AM, John Boy serv...@greenholdings.co.ukwrote:

 Hi

 I have a wesite where PHP session data is passed page to page then shells
 out to Paypal for payment then back to my website for completion of
 transaction and update of mysql file. When using Firefox our session data
 and POST data from Paypal is lost. This has happend only recently and has
 worked happily in the past. Works in other browsers too. Anyone heard of
 same problems?

 mywebpage - session data-mywebpage2-session data-paypal page-POST data
 + session data-mywebpage3

 --
 Johniboy


Just a thought - does this depend on using third party cookies between your
site and PayPal? If so, do you have them disabled in Firefox?

Andrew


Re: [PHP] Session data lost in Firefox

2012-10-26 Thread John Boy
Looks like it was a corrupted Paypal cookie lurking about on my test
machine. Clearing all Paypal cookies cured the problem.
Hours can be spent looking for needles like this in a very complex haystack
and it turns out to be the simplest solution that's not even related
directly to the programming. Thanks, Andrew for the prompting!
However if this happened on a punter's computer the same would happen - so
is there a way of coding the removal of third party cookies to avoid this
problem?


Andrew Ballard aball...@gmail.com wrote in message 
news:cac1b6rsbydmopeulin0fjmax-vap_uas_1w6e-nr-1shwm+...@mail.gmail.com...
 On Fri, Oct 26, 2012 at 8:49 AM, John Boy 
 serv...@greenholdings.co.ukwrote:

 Hi

 I have a wesite where PHP session data is passed page to page then shells
 out to Paypal for payment then back to my website for completion of
 transaction and update of mysql file. When using Firefox our session data
 and POST data from Paypal is lost. This has happend only recently and has
 worked happily in the past. Works in other browsers too. Anyone heard of
 same problems?

 mywebpage - session data-mywebpage2-session data-paypal page-POST 
 data
 + session data-mywebpage3

 --
 Johniboy


 Just a thought - does this depend on using third party cookies between 
 your
 site and PayPal? If so, do you have them disabled in Firefox?

 Andrew
 



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Session data lost in Firefox

2012-10-26 Thread Andrew Ballard
On Fri, Oct 26, 2012 at 12:12 PM, John Boy serv...@greenholdings.co.ukwrote:

 Looks like it was a corrupted Paypal cookie lurking about on my test
 machine. Clearing all Paypal cookies cured the problem.
 Hours can be spent looking for needles like this in a very complex haystack
 and it turns out to be the simplest solution that's not even related
 directly to the programming. Thanks, Andrew for the prompting!
 However if this happened on a punter's computer the same would happen - so
 is there a way of coding the removal of third party cookies to avoid this
 problem?


As far as I know, if you can set a cookie you can also clear it. I don't
like the approach, though. I have 3rd party cookies disabled on purpose.

Andrew