Please be sure to use UBB code tags when posting code to the forums. Unformatted code is extremely hard to read and many people that might be able to help you will just move along to posts that are easier to read. Please read this for more information.
You can go back and change your post to add code tags by clicking the .
Thanks a lot for your replies. I tried some thing and found some thing but still surprise what is going on at behind the screen really surprisied and scared. The following code is perfectly working on WAS 5.1 ,
Strange is if I decrease the Max age value the cookis are not adding to browsers. But,in tomcat it is taking any value which is lesser than above value also. Please help me. I want my cookie should alive only for 1yr but with above it is 1.6 years.
I dont see anything in the kookie RFC or the servlet API that prescribes a maximum Max-Age value. Perhaps your browser is rejecting or deleting the cookie for some other reason? Is there a possibility that some other code is modifying the Max-Age?
How are you determining that the browser is not getting the cookie?
Bill [ October 02, 2008: Message edited by: William Brogden ]