Why are you adding a dot before the domain in Cookie.setDomain() ?
When checking the cookie validity the cookie is rejected because cookie domain .www.x.com does not tail match url domain www.x.com
Log in to post a comment.