Frequently Asked Questions

Oct 21, 2019 - 11:40pm

 [F] Frequently Asked Questions  / Operational Questions  / Macros and Templates  / WCTL  /

Determining What Cookies are Stored

Rate This FAQ
 (Not yet rated)

Created On: 11 Jan 2004 5:55 pm
Last Edited: 11 Jan 2004 5:55 pm

Question Email This Printer Friendly

How can I determine what cookies are stored on a browser by my site if I do not know their names ahead of time?

Answer

Use the %% envir.http_cookie %% command. This will return all the accessible cookies stored by the site on the browser in a name=value pair format, semicolon delimited.

For example:

webxUser=536B696E6E536B696E6E536B696E6E536B696E6E0421D3DBDFE8A0AB9D37D; webxSupportUser=Bruce%20Skinner; webxSupportcompany=WCI; webxSupportemail=xyz123%40toodles.com; webxSupporttelephone=5105551212; webxSupporthosted=; webxSupportwebxUrl=http%3A%2F%2Fsupport.webcrossing.com%2Fwebx; webxSupportwebxVertical=Web%20Crossing

The values are URL encoded, so when you work with them be sure to use %% string.fromUrl %%.