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

The Content Screen

It's time to set up the content screen—this sets up what the user sees after she logs in to the system, or if she has a cookie set on her machine. Essentially, it is nothing but a series of queries that are embedded into the HTML code. For the most part, this screen is going to be simple to build. It will, however, require some custom code before we start writing queries.

In the previous section, we let the user log in and create a new account, and then set a session variable based on that userID. Before we do anything else on this page, we need to set a cookie that will register the userID for future visits. We also need to redirect the user if she doesn'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