Page 270 - DCAP408_WEB_PROGRAMMING
P. 270

Web Programming




                    Notes          HTTPS: HTTP over Secure Socket Layer (SSL).
                                   Request Header: A request header is a single line of text that browser sends to the web server
                                   when requesting to view any web page.

                                   Request.Cookies Property: The Request.Cookies property can be used to retrieve the values
                                   stored in the client’s cookie.
                                   Request.ServerVariables:  The  Request.ServerVariables  property  can  be  used  to  retrieve
                                   information about the predefined server variables.
                                   Response Header: Response headers are additional bits of information about the web page being
                                   sent to the client.

                                   11.6 Review Questions

                                   1.  Examine the name of the response header that sends detailed information about the browser
                                       and operating system being used by the client.

                                   2.  Explain what environment variable returns the physical address of your Web’s root directory?
                                   3.  What does the URL environment variable contain? What kinds of data types can a cookie
                                       not store?

                                   4.  Create an ASP page  named DeleteAllCookies.asp.  Write code  that will  delete all  the
                                       cookies your Web site has created on the client’s computer. (Hint: Remember that cookies
                                       are deleted when they expire!)
                                   5.  Substantiate ServerVariables  collection? Some  environmental variables  do not  contain
                                       values. Why is that? Name some environmental variables, which do not contain values.
                                   6.  Demonstrate some of the environmental variables, which do not contain variables all the
                                       time. Explain with the proper example.

                                   7.  Discuss some of the environmental variables which contain values all the time. Explain
                                       with the proper example.
                                   8.  The Cookies collection is used to set or get cookie values. Comment

                                   9.  Cookies were created to maintain user information and to customize web sites. Analyze
                                   10.  Cookies can potentially be  used to  build detailed profiles of your interests,  spending
                                       habits and lifestyle. Do you agree with this statement? Why or why not? Give reasons to
                                       support your answer.

                                   Answers: Self  Assessment

                                   1.  request object                    2.   request header
                                   3.  values                            4.   empty
                                   5.  virtual path                      6.   web page

                                   7.  environment variables             8.   client side
                                   9.  server                            10.  state object
                                   11.  Keys                             12.  Browsers
                                   13.  Privacy                          14.  Set-Cookie

                                   15.  Cookies



          264                               LOVELY PROFESSIONAL UNIVERSITY
   265   266   267   268   269   270   271   272   273   274   275