Cookies are stored in form of information, so that later this information can be used by the Web Server to track a site visitor or for other statistics purposes.
Example
<!DOCTYPE html>
<html>
<head>
<title>Scholars Globe Examples</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Scholars Globe Examples - Tags." />
<meta name="revised" content=" ScholarsGlobe, 1/4/2016" />
<meta http-equiv="cookie" content="userid=abc; expires=Thursday, 04-Sept-15 26:19:52 GMT;" />
</head>
<body>
<p>Body Content</p>
</body>
</html>
Note: If you don’t specify expiration date and time, the cookie is regarded as a session and will be deleted from cache when the user exits the browser.
Cache is an information storage space temporarily in the memory or disk for quick re-use later.
Example
<!DOCTYPE html>
<html>
<head>
<title>Scholars Globe Examples</title>
<meta name="keywords" content="HTML, Meta Tags, Metadata" />
<meta name="description" content="Scholars Globe Examples - Tags." />
<meta name="revised" content=" ScholarsGlobe, 1/4/2016" />
<meta http-equiv="cookie" content="userid=abc; expires=Thursday, 04-Sept-15 26:19:52 GMT;" />
</head>
<body>
<p>Body Content</p>
</body>
</html>
Note: If you don’t specify expiration date and time, the cookie is regarded as a session and will be deleted from cache when the user exits the browser.
Cache is an information storage space temporarily in the memory or disk for quick re-use later.
No comments:
Post a comment