I can't delete my cookies

Hello,
I can't delete my cookies even with the method setMaxAge(0)
Here is my code :
Cookie cookie=null;
Cookie cookies[]=request.getCookies();
if (cookies!=null)
for(int i=0; i<cookies.length; i++)
cookie=cookies;
if (cookie!=null)
cookie.setMaxAge(0);
cookie=new Cookie(cha�neCookies,cha�neCookies);
response.addCookie(cookie);
I use the breakpoint and my application pass on cookie.setMaxAge(0)
but setMaxAge doesn't delete my cookie.
Anyone have an idea?
Thanks in advance

Nobody can help me, please.
I can't delete my cookies even with the method setMaxAge(0)
Here is my code :
Cookie cookie=null;
Cookie cookies[]=request.getCookies();
if (cookies!=null)
for(int i=0; i<cookies.length; i++)
cookie=cookies;
if (cookie!=null)
cookie.setMaxAge(0);
cookie=new Cookie(cha�neCookies,cha�neCookies);
response.addCookie(cookie);
I use the breakpoint and my application pass on cookie.setMaxAge(0)
but setMaxAge doesn't delete my cookie.
Anyone have an idea?
Thanks in advance

Similar Messages

  • How can i safely segregate certain cookies (such as my bank's) so that i can use the delete all cookies feature but preserve those cookies?

    how can i safely segregate certain cookies (such as my bank's) so that i can use the delete all cookies feature but preserve those cookies? windows xp, firefox 13.0.1

    You can't delete all cookies if you want to preserve some of them.
    You will have to let all cookies expire when you close Firefox and create an allow exception for cookies that you want to keep and only clear cookies manually and not via Clear Recent History.
    *Tools > Options > Privacy : History: [X] Clear history when Firefox closes > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    You can also consider to access website in Private Browsing mode if you do not want to store data to disk form those websites.
    *https://support.mozilla.org/kb/Private+Browsing

  • How can I delete cookies by date?

    I've been using Firefox for a hundred years, and have 550 gazillion cookies. I like cookies. (I'm an affiliate marketer and people who advise my customers to delete their cookies drive me nuts.) I'd like to delete cookies > 5 years old. How can I do that?
    (By the way, can you tell whomever administers this forum that the emails it sends to reset passwords aren't structured properly? That's why my email provider--GoDaddy--says they're not delivering those emails from you. The forum never accepts my passwords, and trying to reset does nothing, so every time I want to ask a question I have to create a new account.)

    Hi GaelicGal2, there is a forum on the Add-ons site where you can post a request for a new extension ([https://forums.mozilla.org/addons/viewforum.php?f=28 Add-on Ideas / Looking for an add-on • Mozilla Add-ons Forum]). Or if one of the existing extensions has the design you want and is just missing this one feature, perhaps it could be added more quickly than having one built from scratch. You could try contacting the author.
    I don't know whether you tried the SQLite Manager extension I mentioned in my first reply. If you want to try that I could describe it in more detail.

  • I think I updated to a newer version of firefox, I can no longer get into my gmail account . I can get onto google however. I deleted all cookies also. What have I done wrong? I didn't have this problem before.

    I can no longer get into my e-mail account on Google. I tried to update my version of Firefox. I also deleted all cookies in Google. When I click on Firefox, it opens to my Google home page. Then when I click on "gmail" it keeps repeating "redirecting" and does no more. What did I do wrong or forget? Help!

    check this
    https://support.mozilla.com/en-US/questions/835441#answer-200175
    Now try this solution
    https://support.mozilla.com/en-US/questions/836263#answer-201266
    Check and tell if its working.

  • Can i delete all my cookies and still be able to access the websites some of the cookies came from

    can i delete all my cookies and still be able to access the websites some of the cookies came from?

    macbookproproblems wrote:
    can i delete all my cookies and still be able to access the websites some of the cookies came from?
    If you Reset Safari, it's supposed too.
    http://support.apple.com/kb/PH11914
    http://www.html-kit.com/tools/cookietester/

  • I deleted my cookies and now i can't access gmail facebook and other sites

    i deleted my cookies and now i can't access gmail facebook and other sites

    Thanks, but I tried that and was directed to set up a new password which I did. But, it still wouldn't let me go to my existing Gmail. I was asked to set up Gmail account. I also tried accessing my Gmail from Yahoo. Failed. Someone suggested setting up another Gmail address so that when you logged on it would ask you which Gmail to open. This didn't work and only made the problem worse. Google Help is no help. I guess the only way to access Gmail is with my iPad, but it just isn't right!

  • How can I permanently delete tracking cookies?

    I was alarmed to read the series in the series in the Wall Street Journal ( www.wsj.com/wtk ) about flash cookies, trackers, and beacons. I had always set my preferences (in Firefox) to not accept cookies, changing that only when I came to a site that required cookies (like Facebook), but then choosing the option to not accept 3rd-party cookies, changing my preferences after the visit, and deleting cookies.
    I installed the add-ons suggested by the WSJ and on this website (Adblock Plus, Better Privacy, Ghostery, PrivacyChoice TrackerWater, and Taco. There is nothing in my Library>Preferences>Macromedia file. I visited the Adobe website and followed their instructions to delete flash cookies. Yet I cannot get rid of the cookies!
    I tried this experiment: when not connected to the internet, with cookies turned off, I deleted all cookies, closed Firefox, and lo and behold, 150 cookies (yes, I counted them) had re-created themselves!
    How can I get rid of them permanently? Please don't give me any pablum about them being harmless, they help to streamline the ads being shown to me, etc. etc. I don't care about that. This is MY computer and I do not want anyone installing anything on it! It irks me that deleting cookies deletes the useful cookies -- cookies that I would chose to keep -- but keeps all these other ones.
    Please, if anyone knows, how can I permanently delete these cookies?

    Get the Add-on NoScript for Firefox.
    http://noscript.net/
    In addition, I always empty all cookies after a browsing session or at the end of the day. The worst is I have to log back in to some sites. You can't permanently eliminate the possibility of picking up a tracking cookie, but you can get rid of them if you pick one up. NoScript minimizes the chances of getting one, since you only allow the minimum scripts for a site to function. I suggest you start at the NS site and read about it. There's also a support forum which needs no registration. I won't have a lot of time today to explain much more.
    Here what you do to completely eliminate Flash cookies. This works.
    +"Delete your ~/Library/Preferences/Macromedia folder so you're starting from a clean, shared-object-free, slate.+
    +Next, in your web browser visit http://www.macromedia.com/support/documentation/en/flashplayer/help/settings_man ager07.html and under the Global Privacy Settings, click the button labeled "always deny" then "confirm" to prevent Flash from watching you through your webcam or listening to you over the computer's microphone. Technically speaking this isn't necessary, but it seems like a prudent move if you don't like the idea of web sites accessing these resources. Don't bother changing anything else in the Settings Manager because the other stuff pretty much involves what and how much can get saved on your computer, and we're going to answer those questions entirely different means.+
    +Now navigate in the Finder back to your ~/Library/Preferences/Macromedia folder and and recursively lock every file and folder inside it. This should include macromedia.com/support/flashplayer/sys/settings.sol, macromedia.com/support/flashplayer/sys, macromedia.com/support/flashplayer, macromedia.com/support, macromedia.com/#SharedObjects/<random letters and numbers>, macromedia.com/#SharedObjects, and finally the macromedia.com folder itself.+
    +That's it!+
    +The cool thing about this is that Flash is convinced it can store this crap so everything works, but nothing is actually remembered by Flash. Or at least nothing is remembered between browser sessions. Flash apparently never tells sites attempting to store stuff that, even though storing is enabled, it doesn't actually work and nothing gets stored."+

  • Make cookies visible again, so that I can delete the cookies immediately when I am no longer using a website.

    Make cookies visible again, so that I can delete the cookies immediately when I am no longer using a website. I recently updated firefox, and I was very disappointed to find that the cookies from sites I visit were no longer showing to me. I am still able to use the sites, but I cannot see their cookies to delete them. I like to delete the cookies immediately once I am done with their site.
    Help me to see the cookies again. Thank you

    I also wanted to let you know, that I find it incredibly stupid, that cookies are hidden away in a tools menu; when most internet users would obviously prefer to be able to immediately see what cookies are being used, and could then just click and delete them immediately, without having to click 4 different buttons and then delete them. PLEASE MAKE THE COOKIES EASIER TO GET RID OF, BY SHOWING THEM IN THE BROWSER ALL THE TIME. thank you

  • How can I delete cookies with fireox 4.0

    i don' t see whwre I can delete old cookies in firefox 4.0

    Orange Firefox Button(or Menu Bar>Tools)>Options>Privacy - down the page there are various settings for accepting and retaining cookies or not. "Show cookies" on the right hand side(don't touch "Exceptions) will show cookies, any of which you can remove or retain.

  • How can I delete history without deleting cookies on safari yosemite?

    how can I delete history without deleting cookies on safari yosemite?

    actually, if I click on history and go to bottom and delete history, with Yosemite, it will delete cookies and all... I get message: if you delete history, you will delete cookies and other information from web sites.
    to avoid that the procedure is this: History > Show History>Select All>Delete. 
    thanks for trying to help.
    good day.

  • How can I keep a cookie for a certain site when I have set Firefox to delete cookies when I close the browser?

    I have set Firefox to delete all cookies when I close the browser. Some websites identify my computer with a cookie, so when I try to log in to these sites, they don't recognize my computer because the identifying cookie has been deleted. I understand that Internet Explorer has a feature that preserves specified cookies, but haven't been able to find that capability in Firefox. Is there a way to do it?

    Let all cookies expire when you close Firefox.
    * Tools > Options > Privacy > Cookies: "Keep until": "I close Firefox"
    Make an Allow exception for the ones that you want to keep.
    * Tools > Options > Privacy > Cookies: "Exceptions"
    You can inspect and modify the permissions for the domain in the current tab in "Tools > Page Info > Permissions"
    Make sure that you do not use "Clear Recent History" to clear the "Cookies" and the "Site Preferences" (Site Preferences includes the cookie exceptions)
    * https://support.mozilla.com/kb/Clear+Recent+History
    Clearing cookies will remove all specified (selected) cookies including cookies that have an allow exception.
    See also:
    * https://support.mozilla.com/kb/Cookies
    * https://support.mozilla.com/kb/Enabling+and+disabling+cookies

  • Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to reset safari but the problem persists.  How can make safari Never accept cookies.

    I'm having a problem with cookies on Safari.
    Even after setting system preferences to Never accept cookies and having deleted all cookies, Safari continues to add cookies.  I've tried to Reseting Safari several time but the problem persists.  This is occurring under two different user logins one of whom is an administrator the other a standard user.  How can I get safari to Never accept cookies?  This is a recent problem because in the past it used to work properly. Any idea what might be going on here?

    Hi David:
    I did read (yesterday in another thread) about a similar problem.  I cannot test it myself as I accept cookies (from sites I visit) and do not want to delete all of mine for a test.
    I do not know whether it meets your requirements, but you could turn on private browsing.  I use that (or Microsoft's variant on IE) when I use public computers.
    Barry

  • When I delete a cookie from the "show cookies" window, how can I get that cookie to automatically go to the exeptions list?

    Desired behavior: I used to be able to delete cookies from the "show cookies" window and they would automatically show up in the exceptions list and be blocked in future sessions.
    Undesired behavior: Now, on a new install, I can delete the cookies from the "show cookies" window but they do not show up in the exceptions list.
    ??????? Help?

    See:
    *http://kb.mozillazine.org/network.cookie.blockFutureCookies

  • Is there a way to delete only cookies in safari 5.1?

    Is there a way to delete only cookies in safari 5.1?
    If you go to Preferences -> Privacy -> details, you can choose to remove "website data" but sometimes this includes the local cache and also local storage.
    Is there any way to delete JUST/SOLEY the cookies that the browser stores?

    Go to ~/Library/Cookies.
    Move the Cookies.plist to the Trash.
    ~ (Tilde) character represents the Home folder.
    For LIon:   To find the Home folder in OS X Lion, open the Finder, hold the Option key, and choose Go > Library

  • I have tried several ways to delete the cookies listed in options and nothing works to get rid of them.

    I have tried all of the methods to delete the cookies that are suggested on your support site. I have tried them if the selection in Options is for cookies allowed and with cookies not allowed. Also with 3rd party cookies allowed and not allowed. Normally, I have it set at cookies allowed but 3rd party cookies not allowed.
    I have tried CCleaner, Euslings Cleaner, Auglogics Cleaner, Wise Cleaner, SuperAntiSpyware, Spybot, and WinPatrol, plus deleting the temp files in Windows. All that software cleans out cookies. I also have Spyblaster set to protect against hundreds of tracking cookies. It was SuperAntiSpyware that brought the problem to my attention in the first place. It just started doing it approximately a few weeks ago but only the passed several days have I been working hard to get those cookies deleted. There must be a couple hundred of them. I did manage to delete about 5 or 6 of them but the others won't budge. I want to clean them all at and start from scratch and monitor them on a daily basis. I don't want most of them. SuperAntiSpyware claims it deletes them but when I go to Options in the browser they are still there. SuperAntiSpyware claims the cookies are there every time I run the program before shutting down the computer.
    I just added that Troubleshooter and looked at information. I'm sorry but I'm not understanding anything. I'm not that computer savvy.

    You may have installed an extension that adds so called opt-out cookies to Firefox.<br />
    Such opt-out cookies are send instead of the normal cookies and you can't remove such opt-out cookies unless you disable or uninstall the extension.
    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe Mode start window.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

Maybe you are looking for

  • How do I use values form different documents on numbers?

    I have two problems:  When I open an Excel worksheet that has references to other spreadsheets, Numbers automatically turns these cells into formulas with the wrong reference, giving therefore the wrong values.  How do I prevent or change this? I als

  • Tuning of procedure having cursor

    I have following procedure which has to be tuned. I was thinking of using Bulk collect, but I believe I cannot use because I am having one select statement before update. art_neg_item_level table has got 40000000 records and art_prod_series has got 7

  • Cannot reliably use request.getRequestURL() in my backing bean

    I am using jDev 11.1.2.3.0. In my backing bean to my ADF JSF page fragment I get mixed results from different web browsers when trying to retrieve a URL from the request object. The java code I use in my bean is like this: FacesContext fc = FacesCont

  • Clock keeps turning off in bedisde mode

    Yesterday u had my phone updated at the sprint store.  Then last night when i went into bedside mode the clock went out after a short while,  Previously, it stayted on all night as intended.  I have gone to options in  clock and have tried the both d

  • To start with SAP BI/BW

    Hello! I would like to get familiar with practical part of SAP BI/BW. I went through course materials BW305 and BW310 I also already completed simple example s. bellow http://help.sap.com/saphelp_nw04s/helpdata/en/46/8df2e4ebf268e5e10000000a1553f7/fr