home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 February / CHIP_2_98.iso / software / pelne / optionp / iis4_07.cab / CustomerInfo_welcome.asp < prev    next >
Text File  |  1997-10-25  |  1KB  |  41 lines

  1. <%
  2.     Response.Buffer = True
  3. %>
  4.  
  5. <HTML>
  6. <HEAD>
  7. <META NAME="GENERATOR" Content="Microsoft Developer Studio">
  8. <META HTTP-EQUIV="Content-Type" content="text/html; charset=iso-8859-1">
  9. <TITLE>Welcome to Fake Corp</TITLE>
  10. </HEAD>
  11. <BODY>
  12.  
  13. <%
  14.     Set cust = Server.CreateObject("IISSample.CustomerInfo")
  15.  
  16.     If cust.checkIfRegistered = False Then
  17. %>
  18.  
  19. You are a new customer, please <A HREF="CustomerInfo_login.asp">register now</A>.<P>
  20. (In other words, the CustomerInfo java class didn't find a valid cookie containing
  21. your registration with this site.)<P>
  22.  
  23. <%
  24.     Else
  25. %>
  26.  
  27. Welcome <%= cust.getFullName %> to the Fake Corp homepage!<P>
  28. (In other words, the CustomerInfo java class has found a valid cookie that shows
  29. that you have registered with this site. To see this, click <A HREF=default.asp>here</A>
  30. to go back to the main page, and then click the link to this customer tracking sample
  31. again; you will not be asked to enter your information again. Note that this cookie
  32. only lasts for the length of the browser session; if you restart your browser, you will
  33. be asked to enter your information again when trying this sample.)<P>
  34.  
  35. <% 
  36.     End If
  37. %>
  38.  
  39. </BODY>
  40. </HTML>
  41.