Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Client Side Scripting language Unit 4 Notes.

Rating
-
Sold
-
Pages
31
Uploaded on
01-02-2023
Written in
2021/2022

Providing well written notes of client side scripting language unit 4.

Institution
Course

Content preview

Chapter 4
Cookies and Browser Data

,Cookie:..
• Cookies are data, stored in small text files, on your computer.
• When a web server has sent a web page to a browser, the
connection is shut down, and the server forgets everything
about the user.
• Cookies were invented to solve the problem "how to
remember information about the user":
• When a user visits a web page, his/her name can be stored in
a cookie.
• Next time the user visits the page, the cookie "remembers"
his/her name.
• Cookies are saved in name-value pairs like:
username = AAA

,Cookie Cont.:
• When a browser requests a web page from a server,
cookies belonging to the page are added to the
request.
• This way the server gets the necessary data to
"remember" information about users.
• None of the examples below will work if your
browser has local cookies support turned off.

, Creating Cookie :
• JavaScript can create, read, and delete cookies with
the document.cookie property.
• With JavaScript, a cookie can be created like this:
document.cookie = "username=AAA";
• You can also add an expiry date (in UTC time). By
default, the cookie is deleted when the browser is closed:
document.cookie = "username=AAA; expires=Thu, 18
Dec 2013 12:00:00 UTC";
• With a path parameter, you can tell the browser what path
the cookie belongs to. By default, the cookie belongs to
the current page.
document.cookie = "username=John Doe; expires=Thu,
18 Dec 2013 12:00:00 UTC; path=/";

Connected book

Written for

Institution
Course

Document information

Uploaded on
February 1, 2023
Number of pages
31
Written in
2021/2022
Type
Class notes
Professor(s)
P.s.chavan
Contains
All classes

Subjects

$6.49
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
suyashbharate27

Also available in package deal

Get to know the seller

Seller avatar
suyashbharate27 Shriram Vidyalaya and Kanishta Mahavidyalaya
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions