This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line! See this thread for details.
hi all, if i add a cookie with a same name twice what would happen? i can try this but not now so i posted this question. i believe that if cookies are maintained in Hashtable by the WebServer then it will overwrite the older one but if not then i don't know. this question came across as one of my friends asked me this but i am too sure about my belief and i wont get time to test it myself please throw some light on this. thank you. maulin
hi Garrett, yes. you are right. i tried the similar code. it creates two cookies if we set domain to be different. so i guess the servlet container might be comparing two Cookie objects (not just their names) before putting cookies into response. sounds reasonable. thanks for your help. regards maulin