1 / 8

Web Page Technologies

Web Page Technologies. I n This Lecture You Will Learn About …. What cookies are Why cookies are used How to create cookies How to retrieve and use cookies How to delete cookies. Cookies. When I log on to Amazon it looks like this. Cookies.

crescent
Download Presentation

Web Page Technologies

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Web Page Technologies

  2. In This Lecture You Will Learn About … • What cookies are • Why cookies are used • How to create cookies • How to retrieve and use cookies • How to delete cookies

  3. Cookies • When I log on to Amazon it looks like this

  4. Cookies • Cookies are little pieces of information stored on your hard disk • They are objects inside the document • A cookie must have a name and a value document.cookie = “usersFirstName=John”;

  5. Cookies • There are several optional attributes document.cookie = “usersFirstName=John; expires = 25-Dec-03 00:00:01 GMT; domain = amazon.co.uk”;

  6. Cookies • Using cookies is easy – somebody else has done all the hard work • Public domain “cookie code “ exists SetCookie(name, value, expires, path, domain, secure) GetCookie(name) DeleteCookie(name, path, domain)

  7. Cookies • All we have to do is write some JavaScript to use the “cookie code”

  8. Lecture Slides • www.dcs.napier.ac.uk/~owens/wpt/lectures/wptlecture6.ppt

More Related