jyothisree
asked on
How to set a cookie and how to access it in diff jsp
hi,
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 .?
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 .?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER