a ColdFusion Component to work with Cookies in CFScript
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
cookieMonster.cfc

README.md

cookieMonster

a ColdFusion Component to work with Cookies in CFScript

Usage

<cfscript>
  var cookieMonster = new cookieMonster();
  
  cookieMonster.setCookie("Foo","Bar"); // Sets a Cookie named "Foo" to the value "Bar"
  
  if (cookieMonster.doesExists("Foo")) { // checks for the existance of a Cookie named Foo
    var _foo = cookieMonster.getValue("Foo"); // Sets local variable "_foo" to the value of "Bar"
    cookieMonster.deleteCookie("Foo"); // Expires the Cookie "Foo" immediately
  }
</cfscript>