How to set a cookie and how to access it in diff jsp
Posted on 2008-09-30
I am setting a cookie ,in one jsp . and retrieving in another jsp. I am unable to get that cookie in the second jsp.
Say, I am setting in one.jsp, and retrieving in two.jsp.
In one.jsp the cookie was set..fine.. in two.jsp, its not there. If i try to access the cookie in one.jsp itself, its accessible. two.jsp is the one ,i am calling that thru Ajax and not thru form action method. Will it be a problem?
Any idea? Like do I have to mention any paths/domains .?