Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there any role of browser cookies for static html site?

Tags:

html

cookies

web

if yes then what we can do with cookies?

like image 654
Jitendra Vyas Avatar asked Apr 03 '09 08:04

Jitendra Vyas


People also ask

Do static websites use cookies?

It can be for improving the user experience, keeping track of what users are doing on the site, or even for basic analytics. However, a few websites don't use cookies. Such sites are usually static pages built on simple HTML code and do not have any interactive elements.

What is the use of cookies in HTML?

Typically, an HTTP cookie is used to tell if two requests come from the same browser—keeping a user logged in, for example. It remembers stateful information for the stateless HTTP protocol.


1 Answers

You say static html, does this mean with javascript?

If so you can use javascript cookies to remember things like whether a menu was expanded, when the user last visited the site etc.

If you just mean pure html on its own then no, cookies can have no benefit to you and you can't write or access them.

like image 173
Rob Stevenson-Leggett Avatar answered Sep 20 '22 01:09

Rob Stevenson-Leggett