Page 254 - DCAP408_WEB_PROGRAMMING
P. 254

Web Programming




                    Notes          You place the cookies on the visitor’s machine by using the cookies collection of the Response
                                   object. To write a single simple cookie to the visitor’s system you would code this:
                                   Response.Cookies  (“NameOfCookies”)  =  “value”
                                   The name of cookie is the name you want to store the cookie as on the visitor’s system. The value
                                   represents the text to store in the cookie. So if you coded this:
                                   Response.Cookies  (“Search  criteria  1”)  =  “ASP”
                                   This could add the cookie with the name Search Criteria 1to the visitor’s system. The cookie
                                   would contain the value ASP. If the cookie already exists, the old value will be overwritten.

                                   Response Object Collections

                                    Object         Purpose
                                    Cookies        Allows you to write cookies to the visitor’s browser.

                                   In our search criteria example, we could store the five most recent searches in a complex cookie.
                                   The recent searches field is blank. But after the visitor has made  a few searches, the  select
                                   element would be populated with those searches.




                                      Task  Mention the two properties of Response that will determine how long an ASP page
                                     will be cached.

                                   Self Assessment


                                   Fill in the blanks:
                                   14.  Cookies are a way for you to store nuggets of information on the ……………….. computer.
                                   15.  Use your ……………….. to retrieve the values stored on the visitor’s system at a later time.


                                     

                                     Caselet     The Importance of Data Warehousing

                                        f you were ever curious about datamining/datawarehousing, you’d have heard this
                                        story about “weekend daddies”. In the US, a shopping chain discovered that adult
                                     Imales who had recently become daddies, sauntered into the mall, picked up beer for
                                     themsel  ves  for  the  weekend,  and  napkins  for  their  kids’  use  during  the  week.
                                     Datawarehousing technology helped  in the discovery. Once  this was learnt, the mall
                                     placed the nappies’ and beer stands next to each other and saw sales soar.
                                     And, if you ever get to run a bank, datawarehousing technology will have told you that
                                     more often than nought, customers that contribute the most to your profits are also the
                                     ones who default on cheques frequently.
                                     Warehousing and mining of data are hot issues in the backrooms of Net enterprises and
                                     traditional companies wanting to take advantage of the Net. The two concepts are simple
                                     and closely related.
                                     Data warehousing is a way of storing content in databases to enable data mining. Data
                                     mining is the technique that reads the data warehouses and makes the tonnes of content on
                                                                                                         Contd...


          248                               LOVELY PROFESSIONAL UNIVERSITY
   249   250   251   252   253   254   255   256   257   258   259