[email protected] Posted May 19, 2011 Share Posted May 19, 2011 We are trying to capture customer details & redirecting the customer to payment gateway page and, after succesful transaction from payment gateway we are facing a problem for different browsers. Ideally after successful transaction the page should redirect to order confirmation page but it is redirecting to our cart page.In IE7 it is working fine but in mozilla firefox it is redireting to cart page.On analyzing we found that session is not persisting in firefox. Please help we have stuck here :'( Suggest something if you have faced similar issue with different browsers. Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/ Share on other sites More sharing options...
anupamsaha Posted May 19, 2011 Share Posted May 19, 2011 Can we see the code for 1) redirecting the customer to payment page and 2) redirecting back to your site from the payment gateway? Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/#findComment-1217455 Share on other sites More sharing options...
PFMaBiSmAd Posted May 19, 2011 Share Posted May 19, 2011 It's likely that you are redirecting back to a URLs on your site that has or doesn't have a www. (the hostname/subdomain) as part of the URL and it doesn't match the hostname/subdomain on the URL where you started the session and in the browser(s) where this does work, you probably have a matching session due to the URL where you started the session matching the URL you are redirecting back to. Are you consistently using URL's all with or all without the www. and what is your session.cookie_domain setting? Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/#findComment-1217462 Share on other sites More sharing options...
[email protected] Posted May 19, 2011 Author Share Posted May 19, 2011 Can we see the code for 1) redirecting the customer to payment page and 2) redirecting back to your site from the payment gateway? Sorry, I can't do that due to organization policy. Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/#findComment-1217505 Share on other sites More sharing options...
[email protected] Posted May 19, 2011 Author Share Posted May 19, 2011 It's likely that you are redirecting back to a URLs on your site that has or doesn't have a www. (the hostname/subdomain) as part of the URL and it doesn't match the hostname/subdomain on the URL where you started the session and in the browser(s) where this does work, you probably have a matching session due to the URL where you started the session matching the URL you are redirecting back to. Are you consistently using URL's all with or all without the www. and what is your session.cookie_domain setting? Thanks a lot !! it worked, we were using wrong url. I have not set session.cookie_domain in php.ini. BTW what is the function of this attribute. Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/#findComment-1217515 Share on other sites More sharing options...
anupamsaha Posted May 19, 2011 Share Posted May 19, 2011 ini_set("session.cookie_domain", "your_domain"); is this what you are looking for? Quote Link to comment https://forums.phpfreaks.com/topic/236841-session-problem-with-different-browsers-on-redirecting-from-payment-gateway/#findComment-1217519 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.