1 Answer - Sort by: Date | Rating
Cookies are small pieces of information stored by the server on the browser. They are of two types:
1) Temporary – Also called Session cookies, these are stored in the memory of the browser. They are temporary as they last until the browser is closed.
2) Persistent – These types of cookies are saved on the hard drive of the client, so they persist for an indefinite period of time.
HOW COOKIES WORK
When the server needs to create a cookie it sends a SET-COOKIE header to the browser via HTTP HEADER. Once the cookie has been created by the browser, all requests made by the browser will include this cookie in the header.
PROPERTIES OF COOKIES
The following are the properties of cookies:
o DOMAIN – The domain with which this cookie is associated. The cookie will only be sent if this domain is requested.
o EXPIRES – Sets the expiration date of the cookie, and makes the cookie persistent.
o HASKEYS – This is a Boolean value and can be set to true to create a COOKIE DICTIONARY. A Cookie Dictionary is a cookie that stores multiple key value pairs.
o NAME – The name given to the cookie
o SECURE – This property is a Boolean value, and default is false. It specifies whether the cookie is to be sent over a secure connection only or not.
o VALUE – The value of the cookie
o VALUES – When the cookie is a cookie dictionary this property contains all the key value pairs.
LIMITATIONS OF COOKIES
1) A cookie can only contain 4KB of data.
2) Cookies can only store string values.
3) Cookies are browser dependent. Also, if a user disables cookies on his/her computer any cookie-enabled site will not work.
1) Temporary – Also called Session cookies, these are stored in the memory of the browser. They are temporary as they last until the browser is closed.
2) Persistent – These types of cookies are saved on the hard drive of the client, so they persist for an indefinite period of time.
HOW COOKIES WORK
When the server needs to create a cookie it sends a SET-COOKIE header to the browser via HTTP HEADER. Once the cookie has been created by the browser, all requests made by the browser will include this cookie in the header.
PROPERTIES OF COOKIES
The following are the properties of cookies:
o DOMAIN – The domain with which this cookie is associated. The cookie will only be sent if this domain is requested.
o EXPIRES – Sets the expiration date of the cookie, and makes the cookie persistent.
o HASKEYS – This is a Boolean value and can be set to true to create a COOKIE DICTIONARY. A Cookie Dictionary is a cookie that stores multiple key value pairs.
o NAME – The name given to the cookie
o SECURE – This property is a Boolean value, and default is false. It specifies whether the cookie is to be sent over a secure connection only or not.
o VALUE – The value of the cookie
o VALUES – When the cookie is a cookie dictionary this property contains all the key value pairs.
LIMITATIONS OF COOKIES
1) A cookie can only contain 4KB of data.
2) Cookies can only store string values.
3) Cookies are browser dependent. Also, if a user disables cookies on his/her computer any cookie-enabled site will not work.
0
0
- How Do You Join The Rspca?
- What Qualities Are Needed To Become A Primary Teacher?
- How Many Marks Are Needed For Pilot Training After Class 12?
- What GCSE's Do You Need To Become A Children's Doctor?
- Would You Agree With The Statement That The Human Resource Department Is A Liability To An Organization?
- What's Is Real Is Real Estate And Evaluation?
- Can I Study During Flight Attendant's Job?
- Will The Fake Karina Succeed?
- How I Prepare For Fresher Party?
- Where Do I Find My Cna License Number Online?
- How Much Does A Certified Dental Assistant Make In Amarillo Texas?
- What Jobs Are Hiring 16 Or 17 Yr Olds In MO Right Now?
- How Much Are Translators Get Paid Monthly In Abu-dhabi?
- Should Tourist Buy Oyster Card?
- What's The Daily Salary Of A Teacher?
- How Much Does Nd Agricultural Teacher Get Paid?
- Can Someone With A Drug Charge Work As A Pharmacy Tech?
- What Is Aptitude Test And The Use For That?
- What Do I Have To Do To Become An Estate Agent?
- Where Can You Get A Job When You Are 12?
- I Am An Unlicensed Physician From Cuba And A Licensed Registered Nurse In USA.Should I Get Credits For This Education To Study To Become A Pharmacist?
- How Does A Practitioner Use Science? :D X
- What's The Rel Code In Stary Stage 7 Part 10?
- How Much Dose A Head Teacher Get Paid A Year?
- Where Would I Go For Work Experience In Travel(air Hostess) I Was Thinking A Travel Agents, Thomson Or Virgin Airlines, Any Ideas?
- How Do I Activate Cookies For Windows Vista To Get My Facebook To Work?
- Is There Any Website Giving Website Development Free?
- What Are The Problems Related To Website Development Faced By Businesses?
- How Valuable Are Michigan Seo Consultants To My Website Development?
- Please Give Me The Internet Website To The California Unemployment Development Address?

New Comment - Comments are editable for 5 min.