<% Response.Buffer = True %> Welcome to Fake Corp <% Set cust = Server.CreateObject("IISSample.CustomerInfo") If cust.checkIfRegistered = False Then %> You are a new customer, please register now.

(In other words, the CustomerInfo java class didn't find a valid cookie containing your registration with this site.)

<% Else %> Welcome <%= cust.getFullName %> to the Fake Corp homepage!

(In other words, the CustomerInfo java class has found a valid cookie that shows that you have registered with this site. To see this, click here to go back to the main page, and then click the link to this customer tracking sample again; you will not be asked to enter your information again. Note that this cookie only lasts for the length of the browser session; if you restart your browser, you will be asked to enter your information again when trying this sample.)

<% End If %>