In what ways are Cookies deleted by using JavaScript? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
+ 1

In what ways are Cookies deleted by using JavaScript?

29th Aug 2018, 7:21 PM
Rahul shukla
Rahul shukla - avatar
2 ответов
+ 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