Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
How can you use JavaScript to delete a cookie?
Home
JavaScript
How can you use JavaScript to delete a cookie?
0
votes
asked
Sep 19, 2021
in
JavaScript
by
sharadyadav1986
How can you use JavaScript to delete a cookie?
delete-cookie
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Sep 19, 2021
by
sharadyadav1986
If you wish to delete a cookie so that any subsequent attempts made to read the cookie will not return anything, then, you have to set an expiration date of the cookie to a past time.
...