HI, everybody

Do u have the sample code about setting and getting a cookie in JSP page?

i meet a problem same as the one in mail list archive:

When I make a cookie and then display it's value, I see something like:
Cookie Name : jwssessionid
Cookie Value : J1JFRBQAAAABZQDEMQAQAAA


even though I entered a name=varun and value=007. The cookie.length shows me
"1".



Now when I enter another name and value then I am shown the value that I had
entered the first time:



Cookie Name : varun
Cookie Value : 007



Cookie Name : jwssessionid
Cookie Value : J1JFRBQAAAABZQDEMQAQAAA



Why is this happenning?


thank u very much


Yan Xin

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.html
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
 http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets

Reply via email to