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 Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/ 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); Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479784 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) Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479785 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. Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479788 Share on other sites More sharing options...
revraz Posted February 29, 2008 Share Posted February 29, 2008 You can't. Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479793 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. Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479807 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... Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479871 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. Link to comment https://forums.phpfreaks.com/topic/93640-clearing-cookies/#findComment-479899 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.