Network Programming 2000

Project 4 - CGI based Composite Web Page Manager
Frequently Asked Questions

Questions:
Bookmark & Cookies Bookmarks Rude Web Pages
Q:For the BookMark part of the assignment:
  • Should we include the user name to be part of the HREF <A HREF=comp.cgi?func=getpage&page=try&username=netprog>..this way even when the user begins a new netscape/web browser session, he will be able to access the web page?
  • If the user name is not included and if we depend on the cookie for theuser name, then if the user clicks on the bookmark(<A HREF=comp.cgi?func=getpage&page=try) (no username) we will show the loginpage. when the user logs in the user home page(showing all the composite pages) wll be shown and then if he clicks on the bookmark we will take him to the page directly.

A:The user must have a cookie to view a composite web page (the second option you list is the right one).

Q: Could you please be a little bit more specific on what you mean by a user must be able to "bookmark" the composite pages?

A: When viewing a composite web page I should be able to tell the browser I would like to add it to my bookmarks (called "favorites" in Internet Explorer). This means that the request must be a GET, as a POST won't work as a bookmark (the request will be sent, but no POST data).

Q: There is a problem with the composite webpage: the frames are not stable! For example, if you click test1000 on your CompositeWebpage, the frames (the composite webpage) first show up and then replaced by CNN homepage, no composite anymore.

A:cnn.com uses Java to take over the browser window. There is nothing that can be done to prevent this (other than disabling Java on the browser - JavaScript could also do this). Pretty impolite of CNN to do this if you ask me!