When I am setting the cookie through JSP using the below code:
String username = userinfoid;
Cookie testcoo = new Cookie ("username",username);
it is setting the cookie with value "zahidansari" (note value is with double quotes). Although value is correct it is bounded inside double quotes.
However when I am setting the cookie using the below code:
Cookie testcoo = new Cookie ("username",username);
It is setting the cookie without the quotes.
I want the cookie value to be without the quotes. Does anybody have any idea why this is happening.