Delete the cookie?

  • Thread starter Thread starter Mohammad A. Samara
  • Start date Start date
M

Mohammad A. Samara

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 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.
 
call FormsAuthentication.SignOut in an event handler for page unload. that
will expire the cookie when you close the browser without logging out.
 
Don't persist the cookie.

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