A
ad
Hi,
How can I delete the cookie in client?
How can I delete the cookie in client?
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Juan T. Llibre said:You issue the same cookie with the .expires date set to any time in the
past.
DateTime dtExp = DateTime.Now.AddDays(-1);
Response.Cookies["TheCookie"].Expires = dtExp;
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
ad said:Hi,
How can I delete the cookie in client?
ad said:I know login controls of asp.net2.0 is use cookie to store the login
information.
Could this method suitable for the the cookie for login information?
Juan T. Llibre said:You issue the same cookie with the .expires date set to any time in the
past.
DateTime dtExp = DateTime.Now.AddDays(-1);
Response.Cookies["TheCookie"].Expires = dtExp;
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
ad said:Hi,
How can I delete the cookie in client?
Peter Bromberg said:ad,
All cookies are the same. If you know the name of the cookie, you can
delete
it as Juan describes.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
ad said:I know login controls of asp.net2.0 is use cookie to store the login
information.
Could this method suitable for the the cookie for login information?
Juan T. Llibre said:You issue the same cookie with the .expires date set to any time in the
past.
DateTime dtExp = DateTime.Now.AddDays(-1);
Response.Cookies["TheCookie"].Expires = dtExp;
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espanol : http://asp.net.do/foros/
===================================
Hi,
How can I delete the cookie in client?
ad said:But I did not know the name of Login controls's cookies.
How could I delete all the cookis generated by my Web Application?
Peter Bromberg said:ad,
All cookies are the same. If you know the name of the cookie, you can
delete
it as Juan describes.
Peter
--
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com
ad said:I know login controls of asp.net2.0 is use cookie to store the login
information.
Could this method suitable for the the cookie for login information?
"Juan T. Llibre" <[email protected]> ???gco?l¢Do¡Ps?D:[email protected]...
You issue the same cookie with the .expires date set to any time in the
past.
DateTime dtExp = DateTime.Now.AddDays(-1);
Response.Cookies["TheCookie"].Expires = dtExp;
Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en espanol : http://asp.net.do/foros/
===================================
Hi,
How can I delete the cookie in client?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.