Condividi tramite


Cookies Foundation Class

Category Internet
Default Catalog Visual FoxPro Catalog\Foundation Classes
\Internet
Class _cookie
Base Class Custom
Class Library _internet.vcx
Parent Class _custom

Remarks

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.

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.

See Guidelines for Using Visual FoxPro Foundation Classes for more information on using foundation classes.

Properties, Events, Methods Description
cCookie property Name of the current cookie.
Default: ""
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

Guidelines for Using Visual FoxPro Foundation Classes | Visual FoxPro Foundation Classes A-Z | Visual FoxPro Foundation Classes