cookie not set in netscape
1 posts in topic
Flat View  Flat View

Posted By:   gww_india
Posted On:   Thursday, May 16, 2002 12:11 AM

I am setting the cookie with below given code, but netscape not giving me cookie when we visit the page second time

code ...


cookie = new Cookie("userName",request.getParameter("userName"));





Is there any solution ?

Re: cookie not set in netscape

Posted By:   Anonymous  
Posted On:   Saturday, May 25, 2002 08:59 AM

Som ideas:

Try to invoke cookie.setDomain method and pass your domain name as argument (make sure it has a leading .)

Make sure that 'userName' is within the formdata
(e.g. sent to the jsp), if not the return of getParamter will be null. Also make sure that the userName (e.g. the content of the parameter) does not conatin any whitespace character or metacharacters
(like =[]()/?)


About | Sitemap | Contact