Posts

Showing posts with the label javascript

Introduction to JavaScript Cookies

Image
Introduction to JavaScript Cookies The user's information is stored by cookies. Normally when a user visits a website, there is no information in the web server . But it is possible to store any user's information through cookies. Cookie is a normal text file. Whenever a user visits a website, its information is stored as a cookie (text file). This information is stored on the user's computer. In the future whenever the user requests for that website again, with the user's request, that user's cookie is also sent to the web server.   Thus web server gets the information of that user. Based on this information, the web server is aware of the preferences of that user. Also, the web server can make the necessary changes to web pages based on this information. JavaScript provides you with the ability to create, read, change, and delete cookies. Document.cookie property is available in JavaScript for this. Creating Cookies with JavaScri...