fooDigi Posted February 29, 2008 Share Posted February 29, 2008 i have a shopping cart that uses cookies. and i have created the order process and orders come in successfully and everything, but i need to clear the cookies on the site's domain FROM the secure side. if they've purchased something, their next visit should have an empty cart. just seeing if anyone has some creative ideas. thx Quote Link to comment Share on other sites More sharing options...
vicodin Posted February 29, 2008 Share Posted February 29, 2008 All you do is set the same cookie but with no value and with an expiration date in the past. setcookie ("first_cookie", "", time()-60000); Quote Link to comment Share on other sites More sharing options...
fooDigi Posted February 29, 2008 Author Share Posted February 29, 2008 my problem is that i am on a different domain (https://secure...) and need to clear cookies on another (http://www.mysite.com) Quote Link to comment Share on other sites More sharing options...
vicodin Posted February 29, 2008 Share Posted February 29, 2008 Sorry cant help you there... Havent had to deal with that yet. Quote Link to comment Share on other sites More sharing options...
revraz Posted February 29, 2008 Share Posted February 29, 2008 You can't. Quote Link to comment Share on other sites More sharing options...
fooDigi Posted February 29, 2008 Author Share Posted February 29, 2008 simply put. i realize you can't directly alter another. just looking for a more insightful answer, maybe someone who has dealt with it before. Quote Link to comment Share on other sites More sharing options...
tinker Posted February 29, 2008 Share Posted February 29, 2008 Try doing an include (iframe?), and get that to do it... Quote Link to comment Share on other sites More sharing options...
moon 111 Posted February 29, 2008 Share Posted February 29, 2008 Redirect it to a page on the website where the cookies are and clear 'em then redirect yourself back. Quote Link to comment 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.