Compartir a través de


Cookies Foundation Class

This is a simple Web class for handling cookies between Web pages. This class is designed primarily for use with Microsoft Internet Information Servers such as FoxISAPI.

Category

Internet

Default Catalog

Visual FoxPro Catalog\Foundation Classes \Internet

Class

_cookie

Base Class

Custom

Class Library

_internet.vcx

Parent Class

_custom

Remarks

To use, drop the class on a project or form or, from the Component Gallery Item shortcut menu, select Add to Project or Add to Form. When you add the class to a form, Visual FoxPro places the class icon on the form where you can specify the appropriate property values and provide any necessary input and output objects. When you drop the class on a project, you can choose between adding the class or creating a subclass.

Properties, Events, Methods

Description

cCookie property

Name of the current cookie.

Def ault: ""

CookieTable property

Name of the cookies table.

Default: Cookies.dbf

DBFAlias property

Alias of the cookies table.

Default: ""

MakeCookie method

Generates a unique cookie based on the system datetime.

Syntax: MakeCookie( )

Return: none

Arguments: none

GetCookie method

Gets a cookie from HTML server.

Syntax: GetCookie(cStr)

Return: none

Arguments: cStr specifies the name of the cookie to be retrieved.

WriteCookieInfo method

Writes the cookie's information to the cookies table.

Syntax: WriteCookieInfo( )

Return: none

Arguments: none

FixURL method

Reads the URL and evaluates %-markers for reading the cookie.

Syntax: FixURL(m.cStr)

Return: 

Arguments: m.cStr specifies the name of the cookie to be retrieved.

GetVal method

Retrieves a value from the target string, cStr.

Syntax: GetVal(cStr, cVal)

Return: cVal

Arguments: cStr specifies the name of the string to be searched for the value. cVal cVal specifies the value to be sought in the string, cStr.

See Also

Concepts

Guidelines for Using Visual FoxPro Foundation Classes

Reference

Visual FoxPro Foundation Classes A-Z

Other Resources

Foundation Class Samples