By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
444,058 Members | 1,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 444,058 IT Pros & Developers. It's quick & easy.

Logout not working - Forms Authentication domain wide cookie

P: n/a
I'm using domain wide authentication cookie for single-signon solution.
Single signon is working fine but logout doesnt work. I tried using Signout()
method and also expiring cookie explicitely as follows but nothing works.
Please help.

System.Web.HttpCookie cookie;
string cookieName = System.Web.Security.FormsAuthentication.FormsCooki eName;
cookie = Request.Cookies[cookieName];
cookie.Expires = DateTime.Now.AddDays(-1);
cookie.Domain = Citi.ASFP.Core.Utilities.WebUtility.GetDomain();

I used both Request.Cookies.Set(cookie) and Response.Cookies.Add(cookie)
with same results

Thanks in advance for your help !!!
Nov 19 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.