+ 3

Does javascript support saving of cookies on a user's computer just like php

20th Dec 2016, 11:28 AM
Owen Jay
Owen Jay - avatar
6 Réponses
+ 3
thanks alot for the webpage Rishi ,its really useful
20th Dec 2016, 12:35 PM
Owen Jay
Owen Jay - avatar
+ 2
yes document.cookie="name=value, expires=dateofexpiration";
20th Dec 2016, 11:42 AM
Sandeep Chatterjee
+ 2
then how do you load it into a webpage when requested
20th Dec 2016, 12:24 PM
Owen Jay
Owen Jay - avatar
+ 1
Yes
20th Dec 2016, 11:35 AM
Rishi Anand
Rishi Anand - avatar
+ 1
you can use the cookie created just like any other string. you can make it read by pushing different keys etc on an array and then you can use its value. the string goes to cookie
22nd Dec 2016, 4:06 PM
Sandeep Chatterjee