get cookie after set cookie
- by user1432779
I've set my cookie using set-cookie as follows on the server's cgi scripts
print """Content-type: text/html\r\n""",
print """Set-Cookie: name=value\r\n\r\n""",
but when I reload the page I can't get the cookie as it doesn't appear
on
document.cookie
How do I get the cookies? and was Set-cookie : name=value
supposed to appear on document.cookie after I refresh the page?
Overall I want the client side to recognize the cookie if exists and act accordingly
Thanks