Forms and Cookies Sample

This sample is located at \Samples\ASP.

Description
Using the Sample
Key Project Files
Technologies Demonstrated

Description

This sample shows how to use the functionality provided by HTML forms and cookies in a Java component. It shows how to create a simple log-on sequence for your Web-based application using forms and cookies.

Using the Sample

See Using the ASP Samples for instructions on installing, running, and uninstalling this sample.

Key Project Files

CustomerInfo.java

The main method of this class contains a string that tells you whether the customer has registered with this site by checking for the presence of your cookie.

CustomerInfo_login.asp

This file asks the user to enter some data.

CustomerInfo_welcome.asp

This file registers the user.

CustomerInfo_process.asp

This file calls CreateObject for user information and registration.

Technologies Demonstrated

ASP

© 1999 Microsoft Corporation. All rights reserved. Terms of use.