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

  1. #1

    Default 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 in the web.config
    file?

    I use <authentication mode="Forms"> in my application, everytime a user logs
    in the application he still can log back in without authentication because
    of the generated cookies stored in the temp folder.

    Thanks.


    ----------------------------------------------------------------------------
    ------
    International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
    Road, Croydon, Surrey, CR0 2EE, United Kingdom [url]www.icslondon.com[/url] Telephone:
    +44 (0) 208 681 5421, Facsimile: +44 (0) 208 688 1673 This email and any
    files transmitted with it are confidential and intended solely for the use
    of the individual or entity to whom they are addressed. This communication
    may contain information which may be privileged. If you are not the intended
    recipient or the person responsible for delivering the email to the intended
    recipient, you are advised that you have received this email in error and
    that any use, dissemination, forwarding, printing or copying of this email
    is strictly prohibited.


    Mohammad A. Samara Guest

  2. Similar Questions and Discussions

    1. 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?...
    2. 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...
    3. 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,...
    4. #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...
    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 the cookie?

    call FormsAuthentication.SignOut in an event handler for page unload. that
    will expire the cookie when you close the browser without logging out.

    "Mohammad A. Samara" <admin@icslondon.com> wrote in message
    news:%232HvHxtXDHA.2592@TK2MSFTNGP09.phx.gbl...
    > 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 in the web.config
    > file?
    >
    > I use <authentication mode="Forms"> in my application, everytime a user
    logs
    > in the application he still can log back in without authentication because
    > of the generated cookies stored in the temp folder.
    >
    > Thanks.
    >
    >
    > --------------------------------------------------------------------------
    --
    > ------
    > International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
    > Road, Croydon, Surrey, CR0 2EE, United Kingdom [url]www.icslondon.com[/url]
    Telephone:
    > +44 (0) 208 681 5421, Facsimile: +44 (0) 208 688 1673 This email and any
    > files transmitted with it are confidential and intended solely for the use
    > of the individual or entity to whom they are addressed. This communication
    > may contain information which may be privileged. If you are not the
    intended
    > recipient or the person responsible for delivering the email to the
    intended
    > recipient, you are advised that you have received this email in error and
    > that any use, dissemination, forwarding, printing or copying of this email
    > is strictly prohibited.
    >
    >

    Harley Guest

  4. #3

    Default Re: Delete the cookie?

    Don't persist the cookie.

    "Harley" <harleyobrien%40hotmail.com> wrote in message
    news:OroDqAuXDHA.2484@TK2MSFTNGP09.phx.gbl...
    > call FormsAuthentication.SignOut in an event handler for page unload. that
    > will expire the cookie when you close the browser without logging out.
    >
    > "Mohammad A. Samara" <admin@icslondon.com> wrote in message
    > news:%232HvHxtXDHA.2592@TK2MSFTNGP09.phx.gbl...
    > > 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 in the
    web.config
    > > file?
    > >
    > > I use <authentication mode="Forms"> in my application, everytime a user
    > logs
    > > in the application he still can log back in without authentication
    because
    > > of the generated cookies stored in the temp folder.
    > >
    > > Thanks.
    > >
    > >
    >
    > --------------------------------------------------------------------------
    > --
    > > ------
    > > International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
    > > Road, Croydon, Surrey, CR0 2EE, United Kingdom [url]www.icslondon.com[/url]
    > Telephone:
    > > +44 (0) 208 681 5421, Facsimile: +44 (0) 208 688 1673 This email and any
    > > files transmitted with it are confidential and intended solely for the
    use
    > > of the individual or entity to whom they are addressed. This
    communication
    > > may contain information which may be privileged. If you are not the
    > intended
    > > recipient or the person responsible for delivering the email to the
    > intended
    > > recipient, you are advised that you have received this email in error
    and
    > > that any use, dissemination, forwarding, printing or copying of this
    email
    > > is strictly prohibited.
    > >
    > >
    >
    >

    MS News \(MS ILM\) 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