Delete Cookie Control?

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Delete Cookie Control?


    What kind of JavaScript is needed to delete all of the cookies for the
    current web site, and can that be registered in an ASP.NET page as a
    button?

    Thanks.

    xeroxero Guest

  2. Similar Questions and Discussions

    1. Delete cookie when exit page
      Hi! When a user enter my page, a cookie is created. When the user leaves the page (closeing the page), the cookie needs to be deleted. How...
    2. Cookies set one time, I delete cookie, cookie is never set again!
      I am having this problem: My PHP script will set a cookie, it's there in my /Cookies folder. I delete the cookie (I have to for testing purposes,...
    3. #25136 [NEW]: THIS IS NOT A BUG (I think) just cookie issue, it doesnt delete!
      From: pmpp at sapo dot pt Operating system: Windows Xp PHP version: 4.3.2 PHP Bug Type: Unknown/Other Function Bug...
    4. Delete the cookie?
      Hello everyone, Does anyone know how to get rid of the cookies when the internet explorer window is closed after we use Forms authentication mode...
    5. How to delete a cookie?
      I need the statement for deleting a permanent cookie that I created earlier... The .NET documentation refers to the .discard property, but the...
  3. #2

    Default RE: Delete Cookie Control?

    Hi,

    You can use client-side JavaScript or server-side code to delete current
    domain's cookies.

    For client-side JavaScript, see
    [url]http://www.depressedpress.com/Content/Development/JavaScript/Extensions/DP_C[/url]
    ookies/Index.cfm for example. You can use
    "ClientScript.RegisterStartupScript" in the Button's Click event to call
    the JavaScript to delete cookies.

    For server-side code to delete the cookies, see following MSDN Library for
    more information:

    #ASP.NET Cookies Overview
    [url]http://msdn2.microsoft.com/en-us/library/ms178194.aspx[/url]

    Hope this helps. Please feel free to post here if anything is unclear.

    Sincerely,
    Walter Wang (wawang@online.microsoft.com, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    Get notification to my posts through email? Please refer to
    [url]http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif[/url]
    ications.

    Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
    where an initial response from the community or a Microsoft Support
    Engineer within 1 business day is acceptable. Please note that each follow
    up response may take approximately 2 business days as the support
    professional working with you may need further investigation to reach the
    most efficient resolution. The offering is not appropriate for situations
    that require urgent, real-time or phone-based interactions or complex
    project analysis and dump analysis issues. Issues of this nature are best
    handled working with a dedicated Microsoft Support Engineer by contacting
    Microsoft Customer Support Services (CSS) at
    [url]http://msdn.microsoft.com/subscriptions/support/default.aspx[/url].
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Walter Wang [MSFT] Guest

  4. #3

    Default RE: Delete Cookie Control?

    Hi,

    I am interested in this issue. Would you mind letting me know the result of
    the suggestions? If you need further assistance, feel free to let me know.
    I will be more than happy to be of assistance.

    Have a great day!

    Regards,
    Walter Wang (wawang@online.microsoft.com, remove 'online.')
    Microsoft Online Community Support

    ==================================================
    When responding to posts, please "Reply to Group" via your newsreader so
    that others may learn and benefit from your issue.
    ==================================================

    This posting is provided "AS IS" with no warranties, and confers no rights.

    Walter Wang [MSFT] Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139