Hi, I am writing about 20 cookies using a common method through java on one of the pages and trying to read them on next page. In Internet Explorer one of the cookie is not available. There is no place in between where the cookie is getting overwritten / deleted. Also the code works perfect in mozilla but not in Explorer. The strange thins is everytime the same cookie is not available. Can anyone please suggest what could be going wrong.
when you say 'next page', is this in the same window or are you opening a new window? There is a known issue with some versions of IE where sessions can get lost when opening a new window, and I presume cookies are the same.
Microsoft Internet Explorer complies with the following RFC 2109 recommended minimum limitations: •at least 300 cookies •at least 4096 bytes per cookie (as measured by the size of the characters that comprise the cookie non-terminal in the syntax description of the Set-Cookie header) •at least 20 cookies per unique host or domain name
In the above code, the hashmap contains the name value pairs of the cookies being written and the maxAge variable being passed is -1.
The next page is getting loaded in the same window and not a new window.
Also the values that are being written in the cookies are just code values so are not too large and also the maximum number of cookies being written is not more than 25.
The content for the page is to be picked up from Documentum and since that reads cookies all the data had to be transferred from request/hidden fields to the Cookies.
NareshA WaswaniA
Greenhorn
Joined: Feb 26, 2007
Posts: 9
posted
0
And what if the cookie is not supported. In that case will your application not work.
And more over in the case of cookies, you never know the way the cookies are sent : in which order. So even if the end cookies in the hasmap are not missing, quiet possible that they are going in the starting of the sequence. So you never know the exact sequence.
I believe that an applications main feature should not be built around cookies.Not , at least for a completely web based applications , where you do not know the settings of the browser that the client might be using.But there are few other stuffs to look at for tracking client sessions.
But its fine for web based products as products will have a system requirement where the vendor might say that for running this application cookies must be allowed.