Problem in retrieving cookie settings

Hi there,
I set my cookie settings with
myCookie.setMaxAge(600) //for 10 min
myCookie.setComment("....")
The Cookie is retrievable exactly 10 min, after that the .txt file is deleted and the Cookie can't be read out any more. Everything ok so far.
I worked it out to get the settings back with
myCookie.getName()
myCookie.getValue()
myCookie.getMaxAge()
myCookie.getComment()
in my servlet generated HTML Pages, but only name and value can be read out persistently, as long as the cookie lives.
maxAge or other settings "seem" to be default (maxAge = -1) if I don't ask them in the same Request/Response circle.
More clear:
Sometimes I get the correct MaxAge back - sometimes not. But still the cookie lives as long as I want it to live.
How long can a cookie be valid, in years? Has anybody experiences? I thought it can live int seconds, so
31536000 * Jahre (~68)
Has anybody set a cookie for a view years and can say that it is still readable and valid?
Thank you for answers
paulina

This still seems to be a problem. I'm also getting -1 when doing a getMaxAge on a valid persistent cookie. Does anyone know of a fix for this ?
andy

Similar Messages

  • Gmail error message "We've detected a problem with your cookie settings." Tried everything...

    THIS IS THE PAGE:
    Google
    We've detected a problem with your cookie settings.
    Enable cookies
    Make sure your cookies are enabled. To enable cookies, follow these browser-specific instructions.
    Clear cache and cookies
    If you have cookies enabled but are still having trouble, clear your browser's cache and cookies.
    Adjust your privacy settings
    If clearing your cache and cookies doesn't resolve the problem, try adjusting your browser's privacy settings. If your settings are on high, manually add www.google.com to your list of allowed sites. Learn more
    ©2013 Google - Google Home - Terms of Service - Privacy Policy - Help
    i have done everything listed here so many times and nothing is fixing this. Made sure cookies were enabled, cleared cache and cookies, made sure Gmail was approved in security settings, and then as a last ditch effort, I disabled all add-ons for Firefox and still no Gmail... I was so desperate that I even re-installed ff-19 and still cannot get into my email account. What is going on here? Any help or small nudge in the correct direction would be much appreciated!

    I used the same thing used in the first link 950400...
    Firefox > Options > Options > Privacy > remove individual cookies > typed google > remove all cookies > typed gmail > remove all cookies
    restarted Firefox and now I can log into gmail...

  • Is there a problem with the cookie settings in Safari 6?

    Hoping someone can help me... I run a Shopify ecommerce store and am getting inundated with Safari customers complaining about their shopping carts being emptied before they have completed their shopping.  Shopify have washed their hands of the problem, claiming that it is the cookie settings in Safari.  This has never happened before (I have Safari 5 on my Mac and it works perfectly fine). Shopify has told me I need to tell all my customers to change their cookie settings which is mission impossible - most of them wouldn't even know what cookies are let alone be willing to start playing around with their settings.  And what about all the customers I'm losing who aren't complaining to me?  Those who are just getting peeved off with my webstore not working and shopping elsewhere? Please tell me this is a bug that Safari are working on?  I'm pretty lost as to what I can do to fix the problem? 

    Hi Andy, I do have my own domain name - organicexpress.co.nz
    I can't see any links for yoursitename.myshopify.com/somepage though, they seem to all be organicexpress.co.nz/somepage however when I first set up my shopify site it was organic-express.myshopify.com. I thought it might be the cart page still set at the shopify domain but it doesn't seem to be.
    The thing that is puzzling me most is that this problem only began happening about 4-5 weeks ago.  Prior to that, my regular customers who use Safari weren't having any problems.  Another thing too, sometimes it does work - perhaps if the customer completes their order under a certain time frame or perhaps only purchases a few items?  Most of my customers buy 15+ items per order.

  • New to Firefox and Cannot access Gmail account something wrong with cookie settings

    Followed some of the remedies offered on Help but they did not work

    I cleared cookies and started in safe mode then updated plugins (java did not respond) did not try restarting
    Below is the contents of the box that show up when I try to sign in to Gmail
    We've detected a problem with your cookie settings.
    Enable cookies
    Make sure your cookies are enabled. To enable cookies, follow these browser-specific instructions.
    Clear cache and cookies
    If you have cookies enabled but are still having trouble, clear your browser's cache and cookies.
    Adjust your privacy settings
    If clearing your cache and cookies doesn't resolve the problem, try adjusting your browser's privacy settings. If your settings are on high, manually add www.google.com to your list of allowed sites. Learn more

  • Cookie settings for Google?

    When I try to open my G ail account I get this response:
    "We've detected a problem with your cookie settings." I have tried "Options" in FF, but I am not seeing what I need to know to fix the problem.
    This seems to be the only web site that this is happening to. I can access G mail in IE.
    I have Win 8.1, and I had to uninstall and reinstall FF because of unrelated problems, and G mail worked before I reinstalled it.
    Please advise.
    Bob Burns

    You should try to clear your cookies for Gmail to see if that helps.
    Go to Firefox button > Options > Privacy > Remove individual cookies then clear all cookies that have "accounts.google.com"

  • Since upgrading to 3.6.10 I cannot log onto my bank. Checked all cookie settings and all is as it should be. Bank says this is a Firefox problem?

    Since I upgraded to v 3.6.10 I get asked a "security challenge" when I try to log on to one particular bank that I deal with. Other banks work OK. Bank advises the there is a problem with FF 3.6.10 not remembering cookies. I have checked all cookie settings and cleared all cookies and history to start over. Still won't work. Any help would be appreciated.

    Try to clear the cookies from sites that cause problems.
    * "Clear the Cache": Firefox > Preferences > Advanced > Network > Offline Storage (Cache): "Clear Now"
    If clearing the cookies doesn't help then it is possible that the file <i>cookies.sqlite</i> that stores the cookies is corrupted.
    You can rename (or delete) <b>cookies.sqlite</b (cookies.sqlite.old) and delete <b>cookies.sqlite-journal</b> and <b>cookies.txt</b>, if they exist, in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] in case cookies.sqlite got corrupted.
    * [[Cannot log in to websites]] (Remove corrupt cookies file)

  • When i am on college website, i click on option to go to a page and it opens another page asking for another password and pin. The college said there is a problem w/ my browser/ cookie settings. I don't know what to change.g

    I don't know about cookie settings and i've tried on internet explorer and firefox

    Hello Amish Cake  I guess tabbed browsing.  If I'm looking at nytimes and am half way down the page, click on a link and then return to the times I'm back where it originally opened.  ..Mike

  • If i login to bank ffox removes id & pwd. ffox wont save changes to history or cookie settings.

    when i log onto my bank it prompts for id and password. i key them in hit enter and the page comes back with id and password empty. i tried changing settings for history from remember history to use custom settings for history, deleting cookies and restarting ffox. when i check the settings they say remember history again. i do not use ffox password save feature. stuck.

    The "Use custom settings for history" selection allows to see the current history and cookie settings, but selecting this doesn't make any changes to history and cookie settings.
    Firefox shows "Use custom settings for history" as an indication that at least one of the history and cookie settings is not the default to make you aware that changes were made.
    If all history and cookie settings are default then the custom settings are hidden and you see "Firefox will: (Never) Remember History".
    Clear the cache and remove cookies only from websites that cause problems.
    "Clear the Cache":
    *Firefox/Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
    "Remove Cookies" from sites causing problems:
    *Firefox/Tools > Options > Privacy > "Use custom settings for history" > Cookies: "Show Cookies"
    Did you check the cookie exceptions?
    This issue can be caused by corrupted cookies or cookies that are blocked.
    *check the permissions on the about:permissions page and in "Tools > Page Info > Permissions"
    *https://support.mozilla.org/kb/fix-login-issues-on-websites-require-passwords
    If clearing cookies didn't help then it is possible that the cookies.sqlite file that stores the cookies got corrupted.
    *Rename (or delete) <b>cookies.sqlite</b> (cookies.sqlite.old) and delete other present cookies files like <b>cookies.sqlite-journal</b> in the Firefox profile folder in case the file cookies.sqlite got corrupted.

  • Problems with retrieving data from tables with 240 and more records

    Hi,
    I've been connecting to Oracle 11g Server (not sure exact version) using Oracle 10.1.0 Client and O10 Oracle 10g driver. Everything was ok.
    I installed Oracle 11.2.0 Client and I started to have problems with retrieving data from tables.
    First I used the same connection string, driver and so on (O10 Oracle 10g) then I tried ORA Oracle but with no luck. The result is like this:
    I'm able to connect to database. I'm able to retrieve data but from small tables (e.g. with 110 records it works perfectly using both O10 and ORA drivers). When I try to retrieve data from tables with like 240 and more records retrieval simply hangs (nothing happens at all - no error, no timeout). Application seems to hang forever.
    I'm using Powerbuilder to connect to Database (either PB10.5 using O10 driver or PB12 using ORA driver). I used DBTrace, so I see that query hangs on the first FETCH.
    So for the retrievals that hang I have something like:
    (3260008): BIND SELECT OUTPUT BUFFER (DataWindow):(DBI_SELBIND) (0.186 MS / 18978.709 MS)
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=0
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=1
    (3260008): ,len=160,type=DECIMAL,pbt=4,dbt=0,ct=0,prec=0,scale=0
    (3260008): EXECUTE:(DBI_DW_EXECUTE) (192.982 MS / 19171.691 MS)
    (3260008): FETCH NEXT:(DBI_FETCHNEXT)
    and this is the last line,
    while for retrievals that end, I have FETCH producing time, data in buffer and moving to the next Fetch until all data is retrieved
    On the side note, I have no problems with retrieving data either by SQL Developer or DbVisualizer.
    Problems started when I installed 11.2.0 Client. Even if I want to use 10.0.1 Client, the same problem occurs. So I guess something from 11.2.0 overrides 10.0.1 settings.
    I will appreciate any comments/hints/help.
    Thank you very much.

    pgoel wrote:
    I've been connecting to Oracle 11g Server (not sure exact version) using Oracle 10.1.0 Client and O10 Oracle 10g driver. Everything was ok.Earlier (before installing new stuff) did you ever try retrieving data from big tables (like 240 and more records), if yes, was it working?Yes, with Oracle 10g client (before installing 11g) I was able to retrieve any data, either it was 10k+ records or 100 records. Installing 11g client changed something that even using old 10g client (which I still have installed) fails to work. The same problem occur no matter I'm using 10g or 11g client now. Powerbuilder hangs on retrieving tables with more than like 240 records.
    Thanks.

  • Recently when I connect my iphone 4 to my Mac for normal synchronising i found after a few minutes all my purchased apps were deleted and gone ? I have no problem to retrieve them back but that is exhausting and I am feeling sick ? what is the problem ?

    Recently when I connect my iphone 4 to my Mac for normal synchronising i found after a few minutes all my purchased apps were deleted and gone ? I have no problem to retrieve them back but that is exhausting and I am feeling sick ? what is the problem ? please help me and thank you

    Make sure Sync Apps is checked on the Apps tab of your iTunes sync settings and that all the apps are checked that you want on your phone.  Also be sure that your computer is authorized for all Apple IDs used to purchase your apps (and other media) in Store>Authorize this Computer.

  • EVDRE error "encountered problem when retrieving data from webserver"

    Hi,
    in a EVDRE we always get the error "encountered problem when retrieving data from webserver"
    When analysing this further we noticed this is always generated when a base member is selected in the CV and the expansion on the row for this dimension is has one of the following expansion settings:
    DEP
    ALL
    NOEXPAND
    if we select SELF, the error disappears again and the EVDRE works fine again ... is this normal behavior?
    there is no problem with application nor dimension.
    D
    solved it

    Note that the keyword "ALL" does not include the member itself. This may cause some confusion, but as Harish implies, when you select a base member it finds no matches if your memberset is "ALL".
    If you want to design a report to handle the user moving back and forth between base and non-base members in their CV, you either need to include SELF,ALL or SELF,DEP, or something similar....
    OR you need to get a little fancier, and use EVPRO to look and see if the CV member is base -- evpro(app,member,"CALC") -- and then use some conditional logic in Excel to choose the correct expansion options. If Calc=N, use Self, otherwise use SELF,DEP or whatever you choose. This can be a bit tricky if you then want the user to be able to drill down in the report (especially if you want the workbook option to insert add'l rows on the expansion, rather than replace), but it's all possible.

  • Log shipping Could not retrieve backup settings for primary ID

    hello,
    I implemented log shipping in our server the process of implementation went fine but when I view job history I found
    Message
    2014-06-11 12:00:01.53    *** Error: Could not retrieve backup settings for primary ID '99817903-626e-4380-bcf1-c09ca6f48b6d'.(Microsoft.SqlServer.Management.LogShipping) ***
    2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
    2014-06-11 12:00:01.53    *** Error: Could not log history/error message.(Microsoft.SqlServer.Management.LogShipping) ***
    2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
    2014-06-11 12:00:01.53    *** Error: Could not cleanup history.(Microsoft.SqlServer.Management.LogShipping) ***
    2014-06-11 12:00:01.53    *** Error: The specified agent_id 99817903-626E-4380-BCF1-C09CA6F48B6D or agent_type 0 do not form a valid pair for log shipping monitoring processing.(.Net SqlClient Data Provider) ***
    2014-06-11 12:00:01.53    ----- END OF TRANSACTION LOG BACKUP   -----
    Exit Status: 1 (Error)
    also I check for database ID using select * from msdb..log_shipping_primary_databases
    your help is appreciated.
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    MCSE Data Platform
    MCITP: SQL Server 2008 Administration/Development
    MCSA SQL Server 2012
    MCTS: SQL Server Administration/Development
    MyBlog

    Thank you all for your contribution.
    After testing and debugging I found that when they move their database from one server (server2) to another server (server1) the database still using the old name (server2) which you can findusing this script:
    SELECT @@SERVERNAME
    so the replication can't retrieve information, unfortunately for me it is difficult to rename the server because it sis development server so they need to make analysis about side effects if we renamed it. 
    Please Mark it as Answered if it answered your question
    OR mark it as Helpful if it help you to solve your problem
    Elmozamil Elamir Hamid
    MCSE Data Platform
    MCITP: SQL Server 2008 Administration/Development
    MCSA SQL Server 2012
    MCTS: SQL Server Administration/Development
    MyBlog

  • Some cookie settings lost each time Firefox closes

    Hi there,
    Some of my Cookie settings are lost each time Firefox restarts. These specifically relate to web addresses I have entered as Exceptions to the Cookie settings in the Privacy settings tab. I will find that they have been deleted and will have to re-enter them each time. This is annoying if you want to use certain websites that require third-party cookies but you also want to maintain a high privacy level. For example, when using Feedly. Additionally, sometimes my Persona is disabled when Firefox is restarted and I have to re-enable it manually. This problem is sporadic.
    I have a number of add-ons installed but this problem is very recent and these add-ons have not proved a problem before. Anyone else with the same problem? Is it a bug or a setting I can fix? Please help.
    Thanks!

    Do not use [[Clear Recent History]] to clear the "Cookies" and the "Site Preferences"
    Clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, and passwords.
    *http://kb.mozillazine.org/Cookies

  • My automatic sign-in and location (eg for news and weather) details do not stick, despite all history and cookie settings being set never to clear, unlike with Firefox 3x..

    I can set location on www.bbc.co.uk for local news and weather but details are no longer retained between browsing sessions. I have checked the history and cookie settings and they are not supposed to clear anything. A similar problem exists with a site where I want to stay signed in so that I am automatically recognised in a new browsing session; this does not work. These problems seem specific to Firefox 4 because they did not exist with Fx 3, using the same settings. I have also checked add-ons; disabling them makes no difference.

    Please continue with the original question [/questions/992628]
    We are nearly all volunteers and fellow users. Please allow some time to elapse for a reply.

  • Firefox won't save privacy cookie settings.

    I had a virus infect one of my home PCs. It came up as "Windows 7 Security 2012" and I could not do anything without that virus popping all kinds of authentic looking security screens.
    I finally wound up using another of my PCs (which I am using now), to go into microsoft website, and download a scanner and malicious software removal programs onto a flash drive, which I then ran in safe mode on the infected PC. It seems to have worked, but now the problem I have in Firefox is as follows:
    I cannot save privacy cookie settings. I don't want to set cookies on and I uncheck them in the privacy window. However, everytime I exit and reopen Firefox, the cookies are reverted to check marks. I tried the steps of deleting prefs files, and that did not work. I also upgraded to latest level of Firefox because it had been a while since I updated the browser.
    None of that worked, and everytime I use Firefox, first thing I do is set privacy and turn cookies, which is too late anyway because I have to also delete the cookies that were set as Firefox was coming up.
    This is the first time I have had problem with Firefox, but I also realize it could be because of the virus. I don't know what else to do because I upgraded Firefox and tried the suggested support steps for "Preferences not saved". I hate this also because I have to resort to Windows Internet Explorer, something I absolutely loath. Please help!!!!!

    Create a new profile as a test to check if your current profile is causing the problems.
    See "Basic Troubleshooting: Make a new profile":
    *https://support.mozilla.org/kb/Basic+Troubleshooting#w_8-make-a-new-profile
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins" in case there are still problems.
    If that new profile works then you can transfer some files from the old profile to that new profile, but be careful not to copy corrupted files.
    See:
    *http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

Maybe you are looking for

  • Mass Maintenance of Maintenance Plans

    http://help.sap.com/erp2005_ehp_03/helpdata/EN/a1/5959394ba2cd4ae10000000a114084/frameset.htm Procedure If you want to change maintenance plans with the mass maintenance function, proceed as follows: 1. Choose Logistics ® 2. Plant Maintenance ® Plann

  • Problem copying text from word to dreamweaver

    Howdy.. had a problem copying text from a word doc (07) to dreamweaver, for some strange reason it missed a complete section in the middle, 2 paragraphs gone... no errors... no blank spaces, just would not copy and paste the section, everything b4 an

  • Sort by Customer name in Pick Slip report

    Hi All We are using following syntax <xsl:sort select="CF_CUSTOMER_NAME"> <?CF_CUSTOMER_NAME?> to sort by customer, for form field CF_CUSTOMER_NAME This is not working consistently this syntax works ok when we run preview reprot from Local Desktop if

  • Information, bookmarks, links, etc. won't delete...

    Macbook not updating information in bookmarks, dock, and dashboard - if I delete old links, it comes back each time. Programs reappear in the Dock, notes reappear in the dashboard, and bookmarks come back in Safari. anyone have ideas?

  • How do you retouch a 100 year old photo in å curved glass?

    How do you retouch a 100 year old photo in å curved glass?