• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Day 17. Advanced Techniques: Tracking an... > Generating the Content Screen (conte...

Generating the Content Screen (content.asp)

It's time to set up the content screen—this is what the users see after they log in to the system, or if they have a cookie set on their machines. It is nothing but a series of queries that are embedded into the HTML code. The majority of this screen is simple to build but will require some custom code before we can start writing queries. Create a new ASP document, content.asp, now.

In the previous section, we let the user log in and create a new account, and then set a session variable (tempUserID) based on his or her userID in the tblUserInfo database table. Before we can do anything else on this page, we need to set a cookie named userID that will store the tempUserID value for future visits. We also need to redirect the users to login.asp if they don't have a cookie currently set.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint