JavaScript Editor js editor     Web development 



Main Page

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



JavaScript Editor js editor     Web development