In what ways are Cookies deleted by using JavaScript? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula gr√°tis
+ 1

In what ways are Cookies deleted by using JavaScript?

29th Aug 2018, 7:21 PM
Rahul shukla
Rahul shukla - avatar
2 Respostas
+ 6
Basically, you set the expiration date to already expired and the browser will delete it. https://www.w3schools.com/js/js_cookies.asp
30th Aug 2018, 12:05 PM
John Wells
John Wells - avatar
0
i'm pretty sure PHP is used for that, given JS is client-side and PHP is server-side
30th Aug 2018, 11:27 AM
hinanawi
hinanawi - avatar