Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
WebSpeed API Reference : delete-cookie
 

delete-cookie

This function deletes a persistent state cookie. This functions uses the set-cookie function to create a blank cookie with the same name, path, and an already expired date. This is only useful if the user's Web browser supports persistent state cookies and has cookies enabled.

Location

web\method\cookies.i

Parameters

INPUT p_name AS CHARACTER
The name of the cookie to delete.
INPUT p_path AS CHARACTER
The URL path to which the cookie should apply. If the Unknown value (?) is specified, the value of the DefaultCookiePath configuration option is used. If not set, the value of the AppURL global variable is used.
INPUT p_domain AS CHARACTER
The domain to which the cookie should apply. If the Unknown value (?) is specified, the value of the DefaultCookieDomain configuration option is used. If not set, the domain option is not set on the cookie and the current hostname of the Web server is used by the Web browser.

Returns

CHARACTER

Notes

*This function must be executed before the output-content-type function.
*Before using cookies, you should read the standards published for the various Web servers.

Examples

See the continue-processing procedure in web\objects\stateaware.p.

See also

set-attribute-list
get-cookie
delete-cookie