473,395 Members | 1,539 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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 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.
Nov 17 '05 #1
2 1600
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" <ad***@icslondon.com> wrote in message
news:%2****************@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 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.

Nov 17 '05 #2
Don't persist the cookie.

"Harley" <harleyobrien%40hotmail.com> wrote in message
news:Or**************@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" <ad***@icslondon.com> wrote in message
news:%2****************@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 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.


Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Phil Powell | last post by:
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, the PHP script I run behaves according to this...
3
by: Warp | last post by:
If I have a cookie with 'key/value' pairs, how would I delete a specific 'key/value' pair while preserving the remaining pairs? I tried to do something like: cookie(key)="" but it didn't seem to...
3
by: Ben Amada | last post by:
Every time a user visits a particular page, I'm using the code below to add a cookie that expires in 1 day. My question is, a user may visit this page a few times within one day. Before adding...
3
by: Wysiwyg | last post by:
After a server created cookie is processed on the client I want it removed, cleared, or expired in the javascript block but have been unable to do this. If I set a cookie value in the server code...
0
by: Bill Borg | last post by:
Hello all, Not sure I can describe this adequately, but I am creating an endless loop when an authenticated user signs out. When the user signs out, I want to remove authentication, abandon...
1
by: Henri | last post by:
Hi, My page saves user's login on user's computer using a cookie: Dim expires As Date = DateTime.Now.AddMonths(1) Dim cookie As New HttpCookie("login", loginValue) cookie.Expires = expires...
5
by: ad | last post by:
Hi, How can I delete the cookie in client?
6
by: jojowebdev | last post by:
Do javascript cookies REALLY have to be this hard? function setCookie( name, value, expires, path, domain, secure ) { var today = new Date(); today.setTime( today.getTime() ); if ( expires ) {...
1
by: ja5onkendall | last post by:
I'm trying to create a save to fav's using CFCOOKIE. The cookie is using a primary key from the database and adding on using ListAppend. I can't figure out how to delete a cookie out of the list. ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.