Delete the cookie?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mohammad A. Samara

    #1

    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 <authenticati on 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 www.icslondon.com 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

    #2
    Re: Delete the cookie?

    call FormsAuthentica tion.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@icslondo n.com> wrote in message
    news:%232HvHxtX DHA.2592@TK2MSF TNGP09.phx.gbl. ..[color=blue]
    > 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 <authenticati on mode="Forms"> in my application, everytime a user[/color]
    logs[color=blue]
    > in the application he still can log back in without authentication because
    > of the generated cookies stored in the temp folder.
    >
    > Thanks.
    >
    >
    > --------------------------------------------------------------------------[/color]
    --[color=blue]
    > ------
    > International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
    > Road, Croydon, Surrey, CR0 2EE, United Kingdom www.icslondon.com[/color]
    Telephone:[color=blue]
    > +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[/color]
    intended[color=blue]
    > recipient or the person responsible for delivering the email to the[/color]
    intended[color=blue]
    > 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.
    >
    >[/color]


    Comment

    • MS News \(MS ILM\)

      #3
      Re: Delete the cookie?

      Don't persist the cookie.

      "Harley" <harleyobrien%4 0hotmail.com> wrote in message
      news:OroDqAuXDH A.2484@TK2MSFTN GP09.phx.gbl...[color=blue]
      > call FormsAuthentica tion.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@icslondo n.com> wrote in message
      > news:%232HvHxtX DHA.2592@TK2MSF TNGP09.phx.gbl. ..[color=green]
      > > Hello everyone,
      > >
      > > Does anyone know how to get rid of the cookies when the internet[/color][/color]
      explorer[color=blue][color=green]
      > > window is closed after we use Forms authentication mode in the[/color][/color]
      web.config[color=blue][color=green]
      > > file?
      > >
      > > I use <authenticati on mode="Forms"> in my application, everytime a user[/color]
      > logs[color=green]
      > > in the application he still can log back in without authentication[/color][/color]
      because[color=blue][color=green]
      > > of the generated cookies stored in the temp folder.
      > >
      > > Thanks.
      > >
      > >[/color]
      >
      > --------------------------------------------------------------------------
      > --[color=green]
      > > ------
      > > International Computer Systems (London) Ltd. The Courtyard, 14a Sydenham
      > > Road, Croydon, Surrey, CR0 2EE, United Kingdom www.icslondon.com[/color]
      > Telephone:[color=green]
      > > +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[/color][/color]
      use[color=blue][color=green]
      > > of the individual or entity to whom they are addressed. This[/color][/color]
      communication[color=blue][color=green]
      > > may contain information which may be privileged. If you are not the[/color]
      > intended[color=green]
      > > recipient or the person responsible for delivering the email to the[/color]
      > intended[color=green]
      > > recipient, you are advised that you have received this email in error[/color][/color]
      and[color=blue][color=green]
      > > that any use, dissemination, forwarding, printing or copying of this[/color][/color]
      email[color=blue][color=green]
      > > is strictly prohibited.
      > >
      > >[/color]
      >
      >[/color]


      Comment

      Working...