SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: killCookie.cfm

  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,209
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    killCookie.cfm

    Code:
    setCookie.cfm
    
    <cfset cookie.person.name='Santiago'>
    If a user visits at setCookie.cfm, cookie.person.name "Santiago" will be set.

    I like to kill the cookie which is set in setCookie.cfm if the user visits at killCookie.cfm.

    What code should I put in killCookie.cfm?

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Location
    Orange County, CA
    Posts
    27
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does <cfset cookie.person.name='Santiago'> even work?

    CFCookie is designed to create cookies

    setCookie.cfm
    <cfcookie name="person.name" value="Santiago" expires="never">

    Then on killcookie.cfm
    <cfcookie name="person.name" value="Santiago" expires="now">

  3. #3
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    StructDelete(COOKIE,"person")

    http://www.cfquickdocs.com/?getDoc=StructDelete
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •